[Javascript] Fix SWIG_exception() macro (#792)
Fix SWIG_exception() macro to return from the current function. Fixes #789, reported by Julien Dutriaux.
This commit is contained in:
parent
26bbc96d58
commit
b138f054e5
8 changed files with 40 additions and 3 deletions
|
|
@ -4,7 +4,7 @@
|
|||
* ---------------------------------------------------------------------------*/
|
||||
|
||||
#define SWIG_Error(code, msg) SWIG_JSC_exception(context, exception, code, msg)
|
||||
#define SWIG_exception(code, msg) SWIG_JSC_exception(context, exception, code, msg)
|
||||
#define SWIG_exception(code, msg) do { SWIG_JSC_exception(context, exception, code, msg); SWIG_fail; } while (0)
|
||||
#define SWIG_fail goto fail
|
||||
|
||||
SWIGRUNTIME void SWIG_Javascript_Raise(JSContextRef context, JSValueRef *exception, const char* type) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue