summaryrefslogtreecommitdiff
path: root/src/include/postgres.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2006-01-08 21:24:37 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2006-01-08 21:24:37 +0000
commit2645cb54cb2661bc44e57e93614012274af44937 (patch)
treef631a20d269b230f82804f7478f7498d5481e6d2 /src/include/postgres.h
parentcbf39930d6b6d9d4bbc61c15ba2a4dd1057e0b6b (diff)
downloadpostgresql-2645cb54cb2661bc44e57e93614012274af44937.tar.gz
Fix the assert_enabled issue properly. This eliminates the former ABI
difference between USE_ASSERT_CHECKING and not: the assert_enabled variable is always there.
Diffstat (limited to 'src/include/postgres.h')
-rw-r--r--src/include/postgres.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/include/postgres.h b/src/include/postgres.h
index b82cd2fa8b..8d1a38941b 100644
--- a/src/include/postgres.h
+++ b/src/include/postgres.h
@@ -10,7 +10,7 @@
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1995, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/postgres.h,v 1.71 2005/04/14 01:38:21 tgl Exp $
+ * $PostgreSQL: pgsql/src/include/postgres.h,v 1.72 2006/01/08 21:24:37 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -484,7 +484,6 @@ extern DLLIMPORT bool assert_enabled;
/*
* Trap
* Generates an exception if the given condition is true.
- *
*/
#define Trap(condition, errorType) \
do { \
@@ -510,7 +509,6 @@ extern DLLIMPORT bool assert_enabled;
#define AssertMacro(condition) ((void)true)
#define AssertArg(condition)
#define AssertState(condition)
-#define assert_enabled 0
#else
#define Assert(condition) \
Trap(!(condition), "FailedAssertion")