mirror of
https://github.com/postgres/postgres.git
synced 2025-07-14 08:21:07 +03:00
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.
This commit is contained in:
@ -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")
|
||||
|
Reference in New Issue
Block a user