[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Libjit-developers] jit_function_apply and exceptions
From: |
Evin Robertson |
Subject: |
[Libjit-developers] jit_function_apply and exceptions |
Date: |
Mon, 01 Nov 2004 16:30:55 -0500 |
User-agent: |
Mozilla Thunderbird 0.8 (X11/20040926) |
The documentation for jit_function_apply states "Returns zero if an
exception occurred."
However, the code for it only returns zero in cases where the function
itself is generating the exception. It does not report if the functions
it calls make exceptions.
This patch changes it to do such reporting:
--- jit-function.c.~1.12.~ 2004-10-03 22:26:41.000000000 -0400
+++ jit-function.c 2004-11-01 16:23:27.000000000 -0500
@@ -1182,7 +1192,7 @@
if(setjmp(jbuf.buf))
{
_jit_unwind_pop_setjmp();
- return 1;
+ return 0;
}
/* Create a backtrace entry that blocks exceptions from
- [Libjit-developers] jit_function_apply and exceptions,
Evin Robertson <=