Skip to content

Commit 381d4b7

Browse files
committed
Clean up c.h / postgres.h after Assert() move
Per Tom
1 parent 5766228 commit 381d4b7

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

src/include/c.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ typedef NameData *Name;
582582
#define AssertArg(condition) assert(condition)
583583
#define AssertState(condition) assert(condition)
584584

585-
#else /* USE_ASSERT_CHECKING && FRONTEND */
585+
#else /* USE_ASSERT_CHECKING && !FRONTEND */
586586

587587
/*
588588
* Trap
@@ -619,6 +619,10 @@ typedef NameData *Name;
619619
#define AssertState(condition) \
620620
Trap(!(condition), "BadState")
621621

622+
extern void ExceptionalCondition(const char *conditionName,
623+
const char *errorType,
624+
const char *fileName, int lineNumber) __attribute__((noreturn));
625+
622626
#endif /* USE_ASSERT_CHECKING && !FRONTEND */
623627

624628

src/include/postgres.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -638,10 +638,10 @@ extern Datum Float8GetDatum(float8 X);
638638
* ----------------------------------------------------------------
639639
*/
640640

641+
/*
642+
* This declaration supports the assertion-related macros in c.h. This is here
643+
* because that file doesn't have PGDLLIMPORT in the right place.
644+
*/
641645
extern PGDLLIMPORT bool assert_enabled;
642646

643-
extern void ExceptionalCondition(const char *conditionName,
644-
const char *errorType,
645-
const char *fileName, int lineNumber) __attribute__((noreturn));
646-
647647
#endif /* POSTGRES_H */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy