summaryrefslogtreecommitdiff
path: root/src/include/c.h
diff options
context:
space:
mode:
authorPeter Eisentraut2022-10-28 07:19:06 +0000
committerPeter Eisentraut2022-10-28 07:19:06 +0000
commitb1099eca8f38ff5cfaf0901bb91cb6a22f909bc6 (patch)
tree8ef29d9ee5911b059c8ecd2123b50c411cfc7a9e /src/include/c.h
parentd37aa3d35832afde94e100c4d2a9618b3eb76472 (diff)
Remove AssertArg and AssertState
These don't offer anything over plain Assert, and their usage had already been declared obsolescent. Author: Nathan Bossart <[email protected]> Reviewed-by: Michael Paquier <[email protected]> Discussion: https://www.postgresql.org/message-id/20221009210148.GA900071@nathanxps13
Diffstat (limited to 'src/include/c.h')
-rw-r--r--src/include/c.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/include/c.h b/src/include/c.h
index e5510e278d1..d70ed84ac58 100644
--- a/src/include/c.h
+++ b/src/include/c.h
@@ -793,8 +793,6 @@ typedef NameData *Name;
#define Assert(condition) ((void)true)
#define AssertMacro(condition) ((void)true)
-#define AssertArg(condition) ((void)true)
-#define AssertState(condition) ((void)true)
#define AssertPointerAlignment(ptr, bndr) ((void)true)
#elif defined(FRONTEND)
@@ -802,8 +800,6 @@ typedef NameData *Name;
#include <assert.h>
#define Assert(p) assert(p)
#define AssertMacro(p) ((void) assert(p))
-#define AssertArg(condition) assert(condition)
-#define AssertState(condition) assert(condition)
#define AssertPointerAlignment(ptr, bndr) ((void)true)
#else /* USE_ASSERT_CHECKING && !FRONTEND */
@@ -829,14 +825,6 @@ typedef NameData *Name;
(ExceptionalCondition(#condition, __FILE__, __LINE__), 0)))
/*
- * AssertArg and AssertState are identical to Assert. Some places use them
- * to indicate that the complaint is specifically about a bad argument or
- * unexpected state, but this usage is largely obsolescent.
- */
-#define AssertArg(condition) Assert(condition)
-#define AssertState(condition) Assert(condition)
-
-/*
* Check that `ptr' is `bndr' aligned.
*/
#define AssertPointerAlignment(ptr, bndr) \