Rename static_assert to avoid conflicting with C++'11 (and later) (XCC)
authorDan Cross <crossd@gmail.com>
Wed, 4 Nov 2015 19:22:26 +0000 (14:22 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 10 Nov 2015 16:09:45 +0000 (11:09 -0500)
commit4402cbebfec6d0eab2af2a07480a5b41dea8a59f
treeb20d3dd7529705e02c7ab1eb904784508207f9bb
parentc1231cc8558c6971b68647cb8c49631c27e157d6
Rename static_assert to avoid conflicting with C++'11 (and later) (XCC)

The C++ standard laid claim to the name, 'static_assert' in the
C++'11 standard; our macro caused conflict trying to build C++
programs. Rename ours to avoid the conflict.

C11 also has support for _Static_assert and the 'static_assert'
macro in the 'assert.h' header. We should migrate to that.  This
is an incremental step in that direction.

Signed-off-by: Dan Cross <crossd@gmail.com>
[removed undef of parlib_static_assert; we aren't overriding stuff]
Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
user/parlib/ceq.c
user/parlib/include/assert.h
user/parlib/ucq.c