mirror of https://github.com/m-labs/artiq.git
runtime/exception_raise: never return
This commit is contained in:
parent
cbf915c2cc
commit
0c9632d71b
|
@ -33,6 +33,8 @@ void exception_raise(int id)
|
||||||
if(ec_top > 0) {
|
if(ec_top > 0) {
|
||||||
stored_id = id;
|
stored_id = id;
|
||||||
exception_longjmp(exception_contexts[--ec_top].jb);
|
exception_longjmp(exception_contexts[--ec_top].jb);
|
||||||
} else
|
} else {
|
||||||
corecom_log("WARNING: uncaught exception, ID=%d\n", id);
|
corecom_log("ERROR: uncaught exception, ID=%d\n", id);
|
||||||
|
while(1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue