diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-03-04 08:37:38 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-03-04 08:37:38 +0900 |
| commit | a3411c4c96c5975680b7198364127b19472cb20a (patch) | |
| tree | 5b70358a37a209a21eb716ec60233e330a8a20bc /include | |
| parent | e1b3cfa88e6043c6b9c21a944e40cc888f02bb0f (diff) | |
| parent | 019d15c3eedb0fdb9412a3b67180da368c74bdd1 (diff) | |
| download | mruby-a3411c4c96c5975680b7198364127b19472cb20a.tar.gz mruby-a3411c4c96c5975680b7198364127b19472cb20a.zip | |
Merge pull request #1789 from cubicdaiya/feature/mrb_exc_new_str_lit
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); |
