diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-10-12 22:14:11 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-10-12 22:14:11 +0900 |
| commit | 291234c7aa17727d4a2e581330e0eb3c0f388c6b (patch) | |
| tree | ed236208eb00ca16f5be0eedcb599b5b18e1841a /include | |
| parent | 5004d9a282145488dd8f32668805145b02977be1 (diff) | |
| parent | f77fb11f4e47164c7c6063a20ed0791bf151308f (diff) | |
| download | mruby-291234c7aa17727d4a2e581330e0eb3c0f388c6b.tar.gz mruby-291234c7aa17727d4a2e581330e0eb3c0f388c6b.zip | |
Merge branch 'exc_mesg' of https://github.com/take-cheeze/mruby into take-cheeze-exc_mesg
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby/error.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mruby/error.h b/include/mruby/error.h index 20ca38586..80c21434f 100644 --- a/include/mruby/error.h +++ b/include/mruby/error.h @@ -17,9 +17,11 @@ MRB_BEGIN_DECL struct RException { MRB_OBJECT_HEADER; struct iv_tbl *iv; + struct RString *mesg; }; #define mrb_exc_ptr(v) ((struct RException*)mrb_ptr(v)) +#define MRB_EXC_MESG_STRING_FLAG 0x100 MRB_API void mrb_sys_fail(mrb_state *mrb, const char *mesg); MRB_API mrb_value mrb_exc_new_str(mrb_state *mrb, struct RClass* c, mrb_value str); |
