Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
0ca9f451
Commit
0ca9f451
authored
27 years ago
by
Henrik (Grubba) Grubbström
Browse files
Options
Downloads
Patches
Plain Diff
Added new_error() and ERROR().
Rev: src/error.h:1.15
parent
f52cf69b
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/error.h
+9
-1
9 additions, 1 deletion
src/error.h
with
9 additions
and
1 deletion
src/error.h
+
9
−
1
View file @
0ca9f451
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
\*/
\*/
/*
/*
* $Id: error.h,v 1.1
4
1998/0
3/28 15:31:41
grubba Exp $
* $Id: error.h,v 1.1
5
1998/0
4/10 15:22:38
grubba Exp $
*/
*/
#ifndef ERROR_H
#ifndef ERROR_H
#define ERROR_H
#define ERROR_H
...
@@ -79,6 +79,12 @@ extern int throw_severity;
...
@@ -79,6 +79,12 @@ extern int throw_severity;
#define UNSET_ONERROR(X) recoveries && (recoveries->onerror=X.previous)
#define UNSET_ONERROR(X) recoveries && (recoveries->onerror=X.previous)
#endif
#endif
#ifdef DEBUG
#define ERROR(NAME, TEXT, SP, ARGS) new_error(NAME, TEXT, SP, ARGS, __FILE__, __LINE__);
#else
#define ERROR(NAME, TEXT, SP, ARGS) new_error(NAME, TEXT, SP, ARGS, NULL, 0);
#endif
/* DEBUG */
/* Prototypes begin here */
/* Prototypes begin here */
JMP_BUF
*
init_recovery
(
JMP_BUF
*
r
);
JMP_BUF
*
init_recovery
(
JMP_BUF
*
r
);
void
pike_throw
(
void
)
ATTRIBUTE
((
noreturn
));
void
pike_throw
(
void
)
ATTRIBUTE
((
noreturn
));
...
@@ -86,6 +92,8 @@ void va_error(char *fmt, va_list args) ATTRIBUTE((noreturn));
...
@@ -86,6 +92,8 @@ void va_error(char *fmt, va_list args) ATTRIBUTE((noreturn));
void
exit_on_error
(
void
*
msg
);
void
exit_on_error
(
void
*
msg
);
void
fatal_on_error
(
void
*
msg
);
void
fatal_on_error
(
void
*
msg
);
void
error
(
char
*
fmt
,...)
ATTRIBUTE
((
noreturn
,
format
(
printf
,
1
,
2
)));
void
error
(
char
*
fmt
,...)
ATTRIBUTE
((
noreturn
,
format
(
printf
,
1
,
2
)));
void
new_error
(
char
*
name
,
char
*
text
,
struct
svalue
*
oldsp
,
INT32
args
,
char
*
file
,
int
line
)
ATTRIBUTE
((
noreturn
));
void
debug_fatal
(
char
*
fmt
,
...)
ATTRIBUTE
((
noreturn
,
format
(
printf
,
1
,
2
)));
void
debug_fatal
(
char
*
fmt
,
...)
ATTRIBUTE
((
noreturn
,
format
(
printf
,
1
,
2
)));
/* Prototypes end here */
/* Prototypes end here */
...
...
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