summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-02-21 11:02:36 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-02-21 11:02:36 +0900
commit36e234aa377d50d8ee425c7868e0651cf78e85cf (patch)
treee3c8ed43307e5a7d467bcab39018378593976d10 /include
parent66ecd159d3ac75a153c8faa368bd16d4adfadcd8 (diff)
parent08ea324593de0488d12b2695eacfe00be6c05bc4 (diff)
downloadmruby-36e234aa377d50d8ee425c7868e0651cf78e85cf.tar.gz
mruby-36e234aa377d50d8ee425c7868e0651cf78e85cf.zip
Merge pull request #1720 from take-cheeze/move_error_h
move src/error.h to include/mruby/error.h
Diffstat (limited to 'include')
-rw-r--r--include/mruby/error.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/mruby/error.h b/include/mruby/error.h
new file mode 100644
index 000000000..b04dc1082
--- /dev/null
+++ b/include/mruby/error.h
@@ -0,0 +1,17 @@
+/*
+** error.h - Exception class
+**
+** See Copyright Notice in mruby.h
+*/
+
+#ifndef MRUBY_ERROR_H
+#define MRUBY_ERROR_H
+
+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);
+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);
+void mrb_longjmp(mrb_state *mrb);
+
+#endif /* MRUBY_ERROR_H */