mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 10:03:47 +08:00
Document pragmatics of why gdb_assert() is lowercase.
This commit is contained in:
parent
2ad43c4f09
commit
3826677692
@ -1,3 +1,7 @@
|
||||
2001-03-01 Andrew Cagney <ac131313@redhat.com>
|
||||
|
||||
* gdb_assert.h: Document pragmatics behind gdb_assert's case.
|
||||
|
||||
2001-03-01 Andrew Cagney <ac131313@redhat.com>
|
||||
|
||||
* Makefile.in (gdbtk-cmds.o): Add $(regcache_h) to dependency
|
||||
|
@ -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)))
|
||||
|
Loading…
Reference in New Issue
Block a user