introduce mrb_exc_new_str_lit for C string literals

This commit is contained in:
cubicdaiya
2014-03-04 02:45:13 +09:00
parent e1b3cfa88e
commit a514e31f6b
+1
View File
@@ -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);