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.
This commit is contained in:
parent
88e7d25d8d
commit
2efa2c79ea
|
@ -1,3 +1,9 @@
|
||||||
|
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.
|
||||||
|
|
||||||
2012-01-11 Tom Tromey <tromey@redhat.com>
|
2012-01-11 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
PR gdb/9598:
|
PR gdb/9598:
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
/* A static assertion. This will cause a compile-time error if EXPR,
|
/* A static assertion. This will cause a compile-time error if EXPR,
|
||||||
which must be a compile-time constant, is false. */
|
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]
|
extern int never_defined_just_used_for_checking[(expr) ? 1 : -1]
|
||||||
|
|
||||||
/* PRAGMATICS: "gdb_assert.h":gdb_assert() is a lower case (rather
|
/* PRAGMATICS: "gdb_assert.h":gdb_assert() is a lower case (rather
|
||||||
|
|
|
@ -43,7 +43,8 @@ static const char * const async_reason_string_lookup[] =
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
static_assert (ARRAY_SIZE (async_reason_string_lookup) == EXEC_ASYNC_LAST + 1);
|
gdb_static_assert (ARRAY_SIZE (async_reason_string_lookup)
|
||||||
|
== EXEC_ASYNC_LAST + 1);
|
||||||
|
|
||||||
const char *
|
const char *
|
||||||
async_reason_lookup (enum async_reply_reason reason)
|
async_reason_lookup (enum async_reply_reason reason)
|
||||||
|
|
Loading…
Reference in New Issue