mruby 3.3.0
mruby is the lightweight implementation of the Ruby language
Loading...
Searching...
No Matches
throw.h File Reference

More...

#include <setjmp.h>
Include dependency graph for throw.h:

Go to the source code of this file.

Classes

struct  mrb_jmpbuf
 

Macros

#define MRB_SETJMP   setjmp
 
#define MRB_LONGJMP   longjmp
 
#define MRB_TRY(buf)
 
#define MRB_CATCH(buf)
 
#define MRB_END_EXC(buf)
 
#define MRB_THROW(buf)
 
#define mrb_jmpbuf_impl   jmp_buf
 

Detailed Description

  • mruby exception throwing handler

See Copyright Notice in mruby.h

Macro Definition Documentation

◆ MRB_CATCH

#define MRB_CATCH ( buf)
Value:
} else {

◆ MRB_END_EXC

#define MRB_END_EXC ( buf)
Value:
}

◆ MRB_THROW

#define MRB_THROW ( buf)
Value:
MRB_LONGJMP((buf)->impl, 1);

◆ MRB_TRY

#define MRB_TRY ( buf)
Value:
if (MRB_SETJMP((buf)->impl) == 0) {