|
@@ -907,16 +907,10 @@ HL_PRIM hl_thread *hl_thread_start( void *callback, void *param, bool withGC ) {
|
|
|
|
|
|
static void hl_run_thread( vclosure *c ) {
|
|
static void hl_run_thread( vclosure *c ) {
|
|
bool isExc;
|
|
bool isExc;
|
|
- varray *a;
|
|
|
|
- int i;
|
|
|
|
vdynamic *exc = hl_dyn_call_safe(c,NULL,0,&isExc);
|
|
vdynamic *exc = hl_dyn_call_safe(c,NULL,0,&isExc);
|
|
if( !isExc )
|
|
if( !isExc )
|
|
return;
|
|
return;
|
|
- a = hl_exception_stack();
|
|
|
|
- uprintf(USTR("Uncaught exception: %s\n"), hl_to_string(exc));
|
|
|
|
- for(i=0;i<a->size;i++)
|
|
|
|
- uprintf(USTR("Called from %s\n"), hl_aptr(a,uchar*)[i]);
|
|
|
|
- fflush(stdout);
|
|
|
|
|
|
+ hl_print_uncaught_exception(exc);
|
|
}
|
|
}
|
|
|
|
|
|
HL_PRIM hl_thread *hl_thread_create( vclosure *c ) {
|
|
HL_PRIM hl_thread *hl_thread_create( vclosure *c ) {
|