![]() |
mruby
2.0.1
mruby is the lightweight implementation of the Ruby language
|
#include "common.h"
Go to the source code of this file.
Classes | |
struct | RException |
MRuby error handling. More... | |
struct | RBreak |
Macros | |
#define | mrb_exc_ptr(v) ((struct RException*)mrb_ptr(v)) |
#define | mrb_exc_new_str_lit(mrb, c, lit) mrb_exc_new_str(mrb, c, mrb_str_new_lit(mrb, lit)) |
#define | RBREAK_VALUE_TT_MASK ((1 << 8) - 1) |
#define | mrb_break_proc_get(brk) ((brk)->proc) |
#define | mrb_break_proc_set(brk, p) ((brk)->proc = p) |
Functions | |
void | mrb_sys_fail (mrb_state *mrb, const char *mesg) |
mrb_value | mrb_exc_new_str (mrb_state *mrb, struct RClass *c, mrb_value str) |
mrb_value | mrb_make_exception (mrb_state *mrb, mrb_int argc, const mrb_value *argv) |
mrb_value | mrb_exc_backtrace (mrb_state *mrb, mrb_value exc) |
mrb_value | mrb_get_backtrace (mrb_state *mrb) |
void | mrb_no_method_error (mrb_state *mrb, mrb_sym id, mrb_value args, const char *fmt,...) |
mrb_value | mrb_f_raise (mrb_state *, mrb_value) |
static mrb_value | mrb_break_value_get (struct RBreak *brk) |
static void | mrb_break_value_set (struct RBreak *brk, mrb_value val) |
mrb_value | mrb_protect (mrb_state *mrb, mrb_func_t body, mrb_value data, mrb_bool *state) |
Protect. More... | |
mrb_value | mrb_ensure (mrb_state *mrb, mrb_func_t body, mrb_value b_data, mrb_func_t ensure, mrb_value e_data) |
Ensure. More... | |
mrb_value | mrb_rescue (mrb_state *mrb, mrb_func_t body, mrb_value b_data, mrb_func_t rescue, mrb_value r_data) |
Rescue. More... | |
mrb_value | mrb_rescue_exceptions (mrb_state *mrb, mrb_func_t body, mrb_value b_data, mrb_func_t rescue, mrb_value r_data, mrb_int len, struct RClass **classes) |
Rescue exception. More... | |
See Copyright Notice in mruby.h
mrb_value mrb_ensure | ( | mrb_state * | mrb, |
mrb_func_t | body, | ||
mrb_value | b_data, | ||
mrb_func_t | ensure, | ||
mrb_value | e_data | ||
) |
Ensure.
Implemented in the mruby-error mrbgem
mrb_value mrb_protect | ( | mrb_state * | mrb, |
mrb_func_t | body, | ||
mrb_value | data, | ||
mrb_bool * | state | ||
) |
Protect.
Implemented in the mruby-error mrbgem
mrb_value mrb_rescue | ( | mrb_state * | mrb, |
mrb_func_t | body, | ||
mrb_value | b_data, | ||
mrb_func_t | rescue, | ||
mrb_value | r_data | ||
) |
Rescue.
Implemented in the mruby-error mrbgem
mrb_value mrb_rescue_exceptions | ( | mrb_state * | mrb, |
mrb_func_t | body, | ||
mrb_value | b_data, | ||
mrb_func_t | rescue, | ||
mrb_value | r_data, | ||
mrb_int | len, | ||
struct RClass ** | classes | ||
) |
Rescue exception.
Implemented in the mruby-error mrbgem