2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 19:28:26 +08:00

runtime/exception_raise: never return

This commit is contained in:
Sebastien Bourdeauducq 2014-10-15 16:11:28 +08:00
parent cbf915c2cc
commit 0c9632d71b

View File

@ -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);
}
} }