This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[patch] Note why gdb_assert() is lower case


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)))

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]