aboutsummaryrefslogtreecommitdiff
path: root/gdb/common/gdb_assert.h
diff options
context:
space:
mode:
authorAndreas Tobler <andreast@sourceware.org>2012-01-11 21:51:31 +0000
committerAndreas Tobler <andreast@sourceware.org>2012-01-11 21:51:31 +0000
commit2efa2c79ea0c2bcd8cc35dcdfe49492ba5304134 (patch)
tree388e0f71bd80594569d1ba16c6b96b68758639af /gdb/common/gdb_assert.h
parent88e7d25d8daee9ae228af4ead1fd61bb8657c126 (diff)
downloadgdb-2efa2c79ea0c2bcd8cc35dcdfe49492ba5304134.zip
gdb-2efa2c79ea0c2bcd8cc35dcdfe49492ba5304134.tar.gz
gdb-2efa2c79ea0c2bcd8cc35dcdfe49492ba5304134.tar.bz2
2012-01-11 Andreas Tobler <andreast@fgznet.ch>
* common/gdb_assert.h (gdb_static_assert): Rename static_assert to an internal gdb_static_assert. * mi/mi-common.c: Rename static_assert to gdb_static_assert.
Diffstat (limited to 'gdb/common/gdb_assert.h')
-rw-r--r--gdb/common/gdb_assert.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/common/gdb_assert.h b/gdb/common/gdb_assert.h
index 351f558..dc79a08 100644
--- a/gdb/common/gdb_assert.h
+++ b/gdb/common/gdb_assert.h
@@ -22,7 +22,7 @@
/* A static assertion. This will cause a compile-time error if EXPR,
which must be a compile-time constant, is false. */
-#define static_assert(expr) \
+#define gdb_static_assert(expr) \
extern int never_defined_just_used_for_checking[(expr) ? 1 : -1]
/* PRAGMATICS: "gdb_assert.h":gdb_assert() is a lower case (rather