Ignore:
Timestamp:
Jul 9, 2020, 8:51:43 AM (4 years ago)
Author:
coas-nagasima
Message:

mrubyを2.1.1に更新

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 handler
     1/**
     2** @file mruby/throw.h - mruby exception throwing handler
    33**
    44** See Copyright Notice in mruby.h
     
    1616#if defined(MRB_ENABLE_CXX_EXCEPTION) && defined(__cplusplus)
    1717
    18 #define MRB_TRY(buf) do { try {
     18#define MRB_TRY(buf) try {
    1919#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)  }
    2121
    2222#define MRB_THROW(buf) throw((buf)->impl)
     
    3535#endif
    3636
    37 #define MRB_TRY(buf) do { if (MRB_SETJMP((buf)->impl) == 0) {
     37#define MRB_TRY(buf) if (MRB_SETJMP((buf)->impl) == 0) {
    3838#define MRB_CATCH(buf) } else {
    39 #define MRB_END_EXC(buf) } } while(0)
     39#define MRB_END_EXC(buf) }
    4040
    4141#define MRB_THROW(buf) MRB_LONGJMP((buf)->impl, 1);
Note: See TracChangeset for help on using the changeset viewer.