move src/error.h to include/mruby/error.h

This commit is contained in:
take_cheeze
2014-02-20 22:41:29 +09:00
parent 66ecd159d3
commit 08ea324593
5 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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)
-17
View File
@@ -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 */
+1 -1
View File
@@ -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,
+1 -1
View File
@@ -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"