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:
Robert Haas 2013-06-28 09:30:38 -04:00
parent 9e0bc7c1e8
commit 5ee73525d5

View file

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