mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
move src/error.h to include/mruby/error.h
This commit is contained in:
+1
-1
@@ -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
@@ -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
@@ -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
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user