remove RuntimeError from mrb_state

This commit is contained in:
Yukihiro Matsumoto
2012-06-20 20:43:27 +09:00
parent 6f22a61135
commit ef50e63a63
7 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -279,7 +279,6 @@ typedef struct mrb_state {
struct RClass *eException_class;
struct RClass *eStandardError_class;
struct RClass *eRuntimeError_class;
void *ud; /* auxiliary data */
} mrb_state;
@@ -430,6 +429,7 @@ void rb_raise(struct RClass *c, const char *fmt, ...);
void mrb_warn(const char *fmt, ...);
void mrb_bug(const char *fmt, ...);
#define E_RUNTIME_ERROR (mrb_class_obj_get(mrb, "RuntimeError"))
#define E_TYPE_ERROR (mrb_class_obj_get(mrb, "TypeError"))
#define E_ARGUMENT_ERROR (mrb_class_obj_get(mrb, "ArgumentError"))
#define E_INDEX_ERROR (mrb_class_obj_get(mrb, "IndexError"))