mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-06 15:24:56 +08:00
Define Trap and TrapMacro even in non-cassert builds.
In some cases, the use of these macros may be preferable to Assert() or AssertMacro(), since this way the caller can set the trap message. Andres Freund and Robert Haas
This commit is contained in:
parent
9e0bc7c1e8
commit
5ee73525d5
@ -573,6 +573,9 @@ typedef NameData *Name;
|
|||||||
#define AssertMacro(condition) ((void)true)
|
#define AssertMacro(condition) ((void)true)
|
||||||
#define AssertArg(condition)
|
#define AssertArg(condition)
|
||||||
#define AssertState(condition)
|
#define AssertState(condition)
|
||||||
|
#define Trap(condition, errorType)
|
||||||
|
#define TrapMacro(condition, errorType) (true)
|
||||||
|
|
||||||
#elif defined(FRONTEND)
|
#elif defined(FRONTEND)
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user