File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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+ */
641645extern 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 */
You can’t perform that action at this time.
0 commit comments