Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
381d4b70
Commit
381d4b70
authored
12 years ago
by
Alvaro Herrera
Browse files
Options
Downloads
Patches
Plain Diff
Clean up c.h / postgres.h after Assert() move
Per Tom
parent
5766228b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/include/c.h
+5
-1
5 additions, 1 deletion
src/include/c.h
src/include/postgres.h
+4
-4
4 additions, 4 deletions
src/include/postgres.h
with
9 additions
and
5 deletions
src/include/c.h
+
5
−
1
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 */
...
...
This diff is collapsed.
Click to expand it.
src/include/postgres.h
+
4
−
4
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 */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment