diff options
| author | take_cheeze <[email protected]> | 2014-02-20 22:41:29 +0900 |
|---|---|---|
| committer | take_cheeze <[email protected]> | 2014-02-20 22:41:29 +0900 |
| commit | 08ea324593de0488d12b2695eacfe00be6c05bc4 (patch) | |
| tree | e3c8ed43307e5a7d467bcab39018378593976d10 /src | |
| parent | 66ecd159d3ac75a153c8faa368bd16d4adfadcd8 (diff) | |
| download | mruby-08ea324593de0488d12b2695eacfe00be6c05bc4.tar.gz mruby-08ea324593de0488d12b2695eacfe00be6c05bc4.zip | |
move src/error.h to include/mruby/error.h
Diffstat (limited to 'src')
| -rw-r--r-- | src/class.c | 2 | ||||
| -rw-r--r-- | src/error.c | 2 | ||||
| -rw-r--r-- | src/error.h | 17 | ||||
| -rw-r--r-- | src/kernel.c | 2 | ||||
| -rw-r--r-- | src/vm.c | 2 |
5 files changed, 4 insertions, 21 deletions
diff --git a/src/class.c b/src/class.c index 58eaaab0e..11a21f7a7 100644 --- a/src/class.c +++ b/src/class.c @@ -13,7 +13,7 @@ #include "mruby/proc.h" #include "mruby/string.h" #include "mruby/variable.h" -#include "error.h" +#include "mruby/error.h" KHASH_DEFINE(mt, mrb_sym, struct RProc*, 1, kh_int_hash_func, kh_int_hash_equal) diff --git a/src/error.c b/src/error.c index 1ee891619..8d0ec67e0 100644 --- a/src/error.c +++ b/src/error.c @@ -14,7 +14,7 @@ #include "mruby/string.h" #include "mruby/variable.h" #include "mruby/debug.h" -#include "error.h" +#include "mruby/error.h" mrb_value mrb_exc_new(mrb_state *mrb, struct RClass *c, const char *ptr, long len) diff --git a/src/error.h b/src/error.h deleted file mode 100644 index b04dc1082..000000000 --- a/src/error.h +++ /dev/null @@ -1,17 +0,0 @@ -/* -** 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 */ diff --git a/src/kernel.c b/src/kernel.c index f13a13ea2..9aec33d67 100644 --- a/src/kernel.c +++ b/src/kernel.c @@ -10,7 +10,7 @@ #include "mruby/proc.h" #include "mruby/string.h" #include "mruby/variable.h" -#include "error.h" +#include "mruby/error.h" typedef enum { NOEX_PUBLIC = 0x00, @@ -17,7 +17,7 @@ #include "mruby/range.h" #include "mruby/string.h" #include "mruby/variable.h" -#include "error.h" +#include "mruby/error.h" #include "opcode.h" #include "value_array.h" |
