From a514e31f6b9703bf74293714b12714ee6745f872 Mon Sep 17 00:00:00 2001 From: cubicdaiya Date: Tue, 4 Mar 2014 02:45:13 +0900 Subject: introduce mrb_exc_new_str_lit for C string literals --- include/mruby/error.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') 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); -- cgit v1.2.3