summaryrefslogtreecommitdiffhomepage
path: root/src/object.c
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-07-13 15:00:45 +0900
committerYukihiro Matsumoto <[email protected]>2012-07-13 15:00:45 +0900
commit737eaea038af56794b8fdb5a66bb4138dbd446f6 (patch)
tree00cd7c3d021325fd0adad67a32aee0aac2fb5461 /src/object.c
parentbbec03bb7af3fb0277a267e4ec5d38b58aa5cb46 (diff)
downloadmruby-737eaea038af56794b8fdb5a66bb4138dbd446f6.tar.gz
mruby-737eaea038af56794b8fdb5a66bb4138dbd446f6.zip
allow DISABLE/ENABLE_SATDIO
Diffstat (limited to 'src/object.c')
-rw-r--r--src/object.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/object.c b/src/object.c
index eb63c1293..29684b118 100644
--- a/src/object.c
+++ b/src/object.c
@@ -403,11 +403,6 @@ mrb_check_type(mrb_state *mrb, mrb_value x, enum mrb_vtype t)
struct RString *s;
int xt;
- /*if (x == Qundef) {
- //mrb_bug("undef leaked to the Ruby space");
- printf ("undef leaked to the Ruby space\n");
- }*/
-
xt = mrb_type(x);
if ((xt != t) || (xt == MRB_TT_DATA)) {
while (type->type < MRB_TT_MAXDEFINE) {
@@ -431,12 +426,11 @@ mrb_check_type(mrb_state *mrb, mrb_value x, enum mrb_vtype t)
etype = mrb_obj_classname(mrb, x);
}
mrb_raise(mrb, E_TYPE_ERROR, "wrong argument type %s (expected %s)",
- etype, type->name);
+ etype, type->name);
}
type++;
}
- /*mrb_bug("unknown type 0x%x", t);*/
- printf ("unknown type 0x%x (0x%x given)", t, mrb_type(x));
+ mrb_raise(mrb, E_TYPE_ERROR, "unknown type 0x%x (0x%x given)", t, mrb_type(x));
}
}