Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
381d4b70
Commit
381d4b70
authored
Feb 08, 2013
by
Alvaro Herrera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up c.h / postgres.h after Assert() move
Per Tom
parent
5766228b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
src/include/c.h
src/include/c.h
+5
-1
src/include/postgres.h
src/include/postgres.h
+4
-4
No files found.
src/include/c.h
View file @
381d4b70
...
@@ -582,7 +582,7 @@ typedef NameData *Name;
...
@@ -582,7 +582,7 @@ typedef NameData *Name;
#define AssertArg(condition) assert(condition)
#define AssertArg(condition) assert(condition)
#define AssertState(condition) assert(condition)
#define AssertState(condition) assert(condition)
#else
/* USE_ASSERT_CHECKING && FRONTEND */
#else
/* USE_ASSERT_CHECKING &&
!
FRONTEND */
/*
/*
* Trap
* Trap
...
@@ -619,6 +619,10 @@ typedef NameData *Name;
...
@@ -619,6 +619,10 @@ typedef NameData *Name;
#define AssertState(condition) \
#define AssertState(condition) \
Trap(!(condition), "BadState")
Trap(!(condition), "BadState")
extern
void
ExceptionalCondition
(
const
char
*
conditionName
,
const
char
*
errorType
,
const
char
*
fileName
,
int
lineNumber
)
__attribute__
((
noreturn
));
#endif
/* USE_ASSERT_CHECKING && !FRONTEND */
#endif
/* USE_ASSERT_CHECKING && !FRONTEND */
...
...
src/include/postgres.h
View file @
381d4b70
...
@@ -638,10 +638,10 @@ extern Datum Float8GetDatum(float8 X);
...
@@ -638,10 +638,10 @@ extern Datum Float8GetDatum(float8 X);
* ----------------------------------------------------------------
* ----------------------------------------------------------------
*/
*/
/*
* This declaration supports the assertion-related macros in c.h. This is here
* because that file doesn't have PGDLLIMPORT in the right place.
*/
extern
PGDLLIMPORT
bool
assert_enabled
;
extern
PGDLLIMPORT
bool
assert_enabled
;
extern
void
ExceptionalCondition
(
const
char
*
conditionName
,
const
char
*
errorType
,
const
char
*
fileName
,
int
lineNumber
)
__attribute__
((
noreturn
));
#endif
/* POSTGRES_H */
#endif
/* POSTGRES_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment