mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-24 04:25:06 +02:00
Added temporary SIGINT
This commit is contained in:
parent
8452c35fae
commit
524e922ee0
1 changed files with 2 additions and 0 deletions
|
@ -8,6 +8,7 @@
|
||||||
|
|
||||||
#include "cyclone/types.h"
|
#include "cyclone/types.h"
|
||||||
#include "cyclone/runtime.h"
|
#include "cyclone/runtime.h"
|
||||||
|
#include <signal.h> // TODO: only used for debugging!
|
||||||
|
|
||||||
//int JAE_DEBUG = 0;
|
//int JAE_DEBUG = 0;
|
||||||
//int gcMoveCountsDEBUG[20] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
|
//int gcMoveCountsDEBUG[20] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
|
||||||
|
@ -287,6 +288,7 @@ object Cyc_default_exception_handler(void *data, int argc, closure _, object err
|
||||||
fprintf(stderr, "\nCall history:\n");
|
fprintf(stderr, "\nCall history:\n");
|
||||||
Cyc_st_print(stderr);
|
Cyc_st_print(stderr);
|
||||||
fprintf(stderr, "\n");
|
fprintf(stderr, "\n");
|
||||||
|
raise(SIGINT); // break into debugger, unix only
|
||||||
exit(1);
|
exit(1);
|
||||||
return nil;
|
return nil;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue