diff options
| author | cubicdaiya <[email protected]> | 2014-03-04 02:45:13 +0900 |
|---|---|---|
| committer | cubicdaiya <[email protected]> | 2014-03-04 02:45:13 +0900 |
| commit | a514e31f6b9703bf74293714b12714ee6745f872 (patch) | |
| tree | 55d5ff745058ac0f68889377855c8dece93c7356 /include | |
| parent | e1b3cfa88e6043c6b9c21a944e40cc888f02bb0f (diff) | |
| download | mruby-a514e31f6b9703bf74293714b12714ee6745f872.tar.gz mruby-a514e31f6b9703bf74293714b12714ee6745f872.zip | |
introduce mrb_exc_new_str_lit for C string literals
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby/error.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mruby/error.h b/include/mruby/error.h index 078937981..aa7106f88 100644 --- a/include/mruby/error.h +++ b/include/mruby/error.h @@ -9,6 +9,7 @@ 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); +#define mrb_exc_new_str_lit(mrb, c, lit) mrb_exc_new_str(mrb, c, mrb_str_new_lit(mrb, (lit))) mrb_value mrb_make_exception(mrb_state *mrb, int argc, mrb_value *argv); mrb_value mrb_format(mrb_state *mrb, const char *format, ...); void mrb_exc_print(mrb_state *mrb, struct RObject *exc); |
