Changeset 439 for EcnlProtoTool/trunk/mruby-2.1.1/include/mruby/throw.h
- Timestamp:
- Jul 9, 2020, 8:51:43 AM (4 years ago)
- Location:
- EcnlProtoTool/trunk/mruby-2.1.1
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/mruby-2.1.1/include/mruby/throw.h
r331 r439 1 /* 2 ** mruby/throw.h - mruby exception throwing handler1 /** 2 ** @file mruby/throw.h - mruby exception throwing handler 3 3 ** 4 4 ** See Copyright Notice in mruby.h … … 16 16 #if defined(MRB_ENABLE_CXX_EXCEPTION) && defined(__cplusplus) 17 17 18 #define MRB_TRY(buf) do {try {18 #define MRB_TRY(buf) try { 19 19 #define MRB_CATCH(buf) } catch(mrb_jmpbuf_impl e) { if (e != (buf)->impl) { throw e; } 20 #define MRB_END_EXC(buf) } } while(0)20 #define MRB_END_EXC(buf) } 21 21 22 22 #define MRB_THROW(buf) throw((buf)->impl) … … 35 35 #endif 36 36 37 #define MRB_TRY(buf) do {if (MRB_SETJMP((buf)->impl) == 0) {37 #define MRB_TRY(buf) if (MRB_SETJMP((buf)->impl) == 0) { 38 38 #define MRB_CATCH(buf) } else { 39 #define MRB_END_EXC(buf) } } while(0)39 #define MRB_END_EXC(buf) } 40 40 41 41 #define MRB_THROW(buf) MRB_LONGJMP((buf)->impl, 1);
Note:
See TracChangeset
for help on using the changeset viewer.