summaryrefslogtreecommitdiffhomepage
path: root/include/mruby.h
diff options
context:
space:
mode:
authorFrank Celler <[email protected]>2012-06-02 12:09:43 +0200
committerFrank Celler <[email protected]>2012-06-02 12:09:43 +0200
commitc3e0aedece10344a6b3288e0e036273f6d5ba4ba (patch)
tree964e27da17a8d087cfcdfd15c1c8e5a9086d904d /include/mruby.h
parenta3d00a902a64047de8b489952e78230716b7aa6b (diff)
downloadmruby-c3e0aedece10344a6b3288e0e036273f6d5ba4ba.tar.gz
mruby-c3e0aedece10344a6b3288e0e036273f6d5ba4ba.zip
export exception handling
Diffstat (limited to 'include/mruby.h')
-rw-r--r--include/mruby.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mruby.h b/include/mruby.h
index 777683ccd..70bbdf3c2 100644
--- a/include/mruby.h
+++ b/include/mruby.h
@@ -416,6 +416,9 @@ mrb_value mrb_check_funcall(mrb_state *mrb, mrb_value recv, mrb_sym mid, int arg
#define ISXDIGIT(c) (ISASCII(c) && isxdigit((int)(unsigned char)(c)))
#endif
+mrb_value mrb_exc_new(mrb_state *mrb, struct RClass *c, const char *ptr, long len);
+void mrb_exc_raise(mrb_state *mrb, mrb_value exc);
+
int mrb_block_given_p(void);
void mrb_raise(mrb_state *mrb, struct RClass *c, const char *fmt, ...);
void rb_raise(struct RClass *c, const char *fmt, ...);