mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Store exception message to mesg field of struct RException.
This commit is contained in:
@@ -14,9 +14,11 @@ extern "C" {
|
||||
struct RException {
|
||||
MRB_OBJECT_HEADER;
|
||||
struct iv_tbl *iv;
|
||||
mrb_value mesg;
|
||||
};
|
||||
|
||||
#define mrb_exc_ptr(v) ((struct RException*)mrb_ptr(v))
|
||||
#define MRB_EXC_MESG_INIT_FLAG 0x100
|
||||
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user