Skip to content
Snippets Groups Projects
Commit 63d0409a authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Added some trace output.

Rev: src/error.c:1.9
parent 1e9ad207
No related branches found
No related tags found
No related merge requests found
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#include "builtin_functions.h" #include "builtin_functions.h"
#include "array.h" #include "array.h"
#include "object.h" #include "object.h"
#include "main.h"
#undef ATTRIBUTE #undef ATTRIBUTE
#define ATTRIBUTE(X) #define ATTRIBUTE(X)
...@@ -34,9 +35,12 @@ void throw(void) ATTRIBUTE((noreturn)) ...@@ -34,9 +35,12 @@ void throw(void) ATTRIBUTE((noreturn))
fatal("No error recovery context.\n"); fatal("No error recovery context.\n");
#ifdef DEBUG #ifdef DEBUG
if (t_flag) {
fprintf(stderr, "throw(X)\n");
}
if(sp - evaluator_stack < recoveries->sp) if(sp - evaluator_stack < recoveries->sp)
fatal("Stack error in error.\n"); fatal("Stack error in error.\n");
#endif #endif /* DEBUG */
while(fp != recoveries->fp) while(fp != recoveries->fp)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment