Skip to content
Snippets Groups Projects
Commit 9dd1f9ec authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

more debug

Rev: src/error.h:1.7
parent 545ca800
Branches
Tags
No related merge requests found
......@@ -56,7 +56,14 @@ extern struct svalue throw_value;
recoveries->onerror=&X; \
}while(0)
#ifdef DEBUG
#define UNSET_ONERROR(X) do {\
if(recoveries->onerror != &(X)) fatal("UNSET_ONERROR out of sync.\n"); \
recoveries->onerror=(X).previous; \
} while(0)
#else
#define UNSET_ONERROR(X) recoveries->onerror=X.previous
#endif
/* Prototypes begin here */
JMP_BUF *init_recovery(JMP_BUF *r);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment