Commit fad4b578 authored by take_cheeze's avatar take_cheeze

wrap scope with do {} while()

parent 0c8bac5a
...@@ -9,9 +9,9 @@ ...@@ -9,9 +9,9 @@
#ifdef MRB_ENABLE_CXX_EXCEPTION #ifdef MRB_ENABLE_CXX_EXCEPTION
#define MRB_TRY(buf) try { #define MRB_TRY(buf) do { try {
#define MRB_CATCH(buf) } catch(mrb_jmpbuf_impl e) { if (e != (buf)->impl) { throw e; } #define MRB_CATCH(buf) } catch(mrb_jmpbuf_impl e) { if (e != (buf)->impl) { throw e; }
#define MRB_END_EXC(buf) } #define MRB_END_EXC(buf) } } while(0)
#define MRB_THROW(buf) throw((buf)->impl) #define MRB_THROW(buf) throw((buf)->impl)
typedef mrb_int mrb_jmpbuf_impl; typedef mrb_int mrb_jmpbuf_impl;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment