Reorganize C++ exceptions; ref #3470

There are 3 levels of C++ exception handling:
* default - no C++ exception (use setjmp/longjmp)
* enable_cxx_exception (use C++ exceptions with C ABI)
* enable_cxx_abi (use C++ ABI including exceptions)
This commit is contained in:
Yukihiro "Matz" Matsumoto
2017-03-02 10:58:26 +09:00
parent fdd92750fe
commit 0bcf9e28fc
8 changed files with 55 additions and 32 deletions
+4
View File
@@ -2583,3 +2583,7 @@ mrb_top_run(mrb_state *mrb, struct RProc *proc, mrb_value self, unsigned int sta
return v;
}
#if defined(MRB_ENABLE_CXX_EXCEPTION) && defined(__cplusplus)
mrb_int mrb_jmpbuf::jmpbuf_id = 0;
#endif