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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
8e8b9fa9
Commit
8e8b9fa9
authored
26 years ago
by
Henrik (Grubba) Grubbström
Browse files
Options
Downloads
Patches
Plain Diff
Disabled the ONERROR debug.
Rev: src/error.h:1.22
parent
2d1ad786
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
+11
-4
11 additions, 4 deletions
src/error.h
with
11 additions
and
4 deletions
src/error.h
+
11
−
4
View file @
8e8b9fa9
...
...
@@ -5,7 +5,7 @@
\*/
/*
* $Id: error.h,v 1.2
1
1998/07/16 2
1:56:1
5 grubba Exp $
* $Id: error.h,v 1.2
2
1998/07/16 2
2:00:4
5 grubba Exp $
*/
#ifndef ERROR_H
#define ERROR_H
...
...
@@ -35,6 +35,12 @@ struct frame;
#define THROW_EXIT 40
#define THROW_MAX_SEVERITY 100
#ifdef ONERROR_DEBUG
#define OED_FPRINTF(X) fprintf X
#else
/* !ONERROR_DEBUG */
#define OED_FPRINTF(X)
#endif
/* ONERROR_DEBUG */
typedef
struct
ONERROR
{
struct
ONERROR
*
previous
;
...
...
@@ -67,8 +73,8 @@ extern int throw_severity;
#ifdef DEBUG
#define SET_ONERROR(X,Y,Z) \
do{ \
fprintf
(stderr, "SET_ONERROR(%p, %p, %p) %s:%d\n", \
&(X), (Y), (Z), __FILE__, __LINE__); \
OED_FPRINTF(
(stderr, "SET_ONERROR(%p, %p, %p) %s:%d\n", \
&(X), (Y), (Z), __FILE__, __LINE__)
)
; \
if(!recoveries) break; \
X.func=(error_call)(Y); \
X.arg=(void *)(Z); \
...
...
@@ -79,7 +85,8 @@ extern int throw_severity;
}while(0)
#define UNSET_ONERROR(X) do {\
fprintf(stderr, "UNSET_ONERROR(%p) %s:%d\n", &(X), __FILE__, __LINE__); \
OED_FPRINTF((stderr, "UNSET_ONERROR(%p) %s:%d\n", \
&(X), __FILE__, __LINE__)); \
if(!recoveries) break; \
if(recoveries->onerror != &(X)) { \
if (recoveries->onerror) { \
...
...
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