diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-03-01 17:30:05 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-03-01 17:30:05 +0000 |
commit | b451ea6e13697b8c348880bc26d32e78d1f02179 (patch) | |
tree | 1dbfd6191a41572bada53b29c8fecd516ed04f47 /gdb/gdb_assert.h | |
parent | c32a5a6e43ad13ca03568e95c943ccf9ddae7458 (diff) | |
download | gdb-b451ea6e13697b8c348880bc26d32e78d1f02179.tar.gz |
Document pragmatics of why gdb_assert() is lowercase.
Diffstat (limited to 'gdb/gdb_assert.h')
-rw-r--r-- | gdb/gdb_assert.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/gdb_assert.h b/gdb/gdb_assert.h index c9979dbddf5..4f0bcdc9497 100644 --- a/gdb/gdb_assert.h +++ b/gdb/gdb_assert.h @@ -21,6 +21,11 @@ #ifndef GDB_ASSERT_H #define GDB_ASSERT_H +/* PRAGMATICS: "gdb_assert.h":gdb_assert() is a lower case (rather + than upper case) macro since that provides the closest fit to the + existing lower case macro <assert.h>:assert() that it is + replacing. */ + #define gdb_assert(expr) \ ((void) ((expr) ? 0 : \ (gdb_assert_fail (#expr, __FILE__, __LINE__, ASSERT_FUNCTION), 0))) |