This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] Note why gdb_assert() is lower case
- To: GDB Patches <gdb-patches at sourceware dot cygnus dot com>
- Subject: [patch] Note why gdb_assert() is lower case
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Thu, 01 Mar 2001 12:20:40 -0500
Per, previous e-mail. I've checked in the attatched.
Andrew
2001-03-01 Andrew Cagney <ac131313@redhat.com>
* gdb_assert.h: Document pragmatics behind gdb_assert's case.
Index: gdb_assert.h
===================================================================
RCS file: /cvs/src/src/gdb/gdb_assert.h,v
retrieving revision 1.2
diff -p -r1.2 gdb_assert.h
*** gdb_assert.h 2001/02/08 06:03:53 1.2
--- gdb_assert.h 2001/03/01 17:19:26
***************
*** 21,26 ****
--- 21,31 ----
#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)))