wrap scope with do {} while()

This commit is contained in:
take_cheeze
2014-03-01 19:14:37 +09:00
parent 0c8bac5a38
commit fad4b578e1
+2 -2
View File
@@ -9,9 +9,9 @@
#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_END_EXC(buf) }
#define MRB_END_EXC(buf) } } while(0)
#define MRB_THROW(buf) throw((buf)->impl)
typedef mrb_int mrb_jmpbuf_impl;