Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5ee7352

Browse files
committed
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
1 parent9e0bc7c commit5ee7352

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎src/include/c.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,9 @@ typedef NameData *Name;
573573
#defineAssertMacro(condition)((void)true)
574574
#defineAssertArg(condition)
575575
#defineAssertState(condition)
576+
#defineTrap(condition,errorType)
577+
#defineTrapMacro(condition,errorType)(true)
578+
576579
#elif defined(FRONTEND)
577580

578581
#include<assert.h>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp