2015-07-27 10:46:43 +08:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <inttypes.h>
|
|
|
|
#include <unwind.h>
|
|
|
|
#include <artiq_personality.h>
|
|
|
|
|
|
|
|
void __artiq_terminate(struct artiq_exception *exn) {
|
|
|
|
printf("Uncaught %s: %s (%"PRIi64", %"PRIi64", %"PRIi64")\n"
|
2015-07-27 14:10:20 +08:00
|
|
|
"at %s:%"PRIi32":%"PRIi32"\n",
|
2015-07-27 10:46:43 +08:00
|
|
|
exn->name, exn->message,
|
|
|
|
exn->param[0], exn->param[1], exn->param[1],
|
|
|
|
exn->file, exn->line, exn->column + 1);
|
|
|
|
exit(1);
|
|
|
|
}
|