mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03: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:
@ -573,6 +573,9 @@ typedef NameData *Name;
|
||||
#define AssertMacro(condition) ((void)true)
|
||||
#define AssertArg(condition)
|
||||
#define AssertState(condition)
|
||||
#define Trap(condition, errorType)
|
||||
#define TrapMacro(condition, errorType) (true)
|
||||
|
||||
#elif defined(FRONTEND)
|
||||
|
||||
#include <assert.h>
|
||||
|
Reference in New Issue
Block a user