summaryrefslogtreecommitdiffhomepage
path: root/src/kernel.c
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-07-14 07:38:43 +0900
committerYukihiro Matsumoto <[email protected]>2012-07-14 07:38:43 +0900
commite3806922245c15ff9417ca4513c9052ebfa40021 (patch)
tree9160d9077dba3e15a024ad5bb1d5198dfc9edaf0 /src/kernel.c
parent8e1c842b7e17ecb58e25e48e0cac253bceb00f14 (diff)
downloadmruby-e3806922245c15ff9417ca4513c9052ebfa40021.tar.gz
mruby-e3806922245c15ff9417ca4513c9052ebfa40021.zip
mrb_load_xxx to return undef + mrb_undef_p
Diffstat (limited to 'src/kernel.c')
-rw-r--r--src/kernel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel.c b/src/kernel.c
index 1040dbe05..240c0dcb3 100644
--- a/src/kernel.c
+++ b/src/kernel.c
@@ -1038,7 +1038,7 @@ mrb_obj_remove_instance_variable(mrb_state *mrb, mrb_value self)
mrb_get_args(mrb, "n", &sym);
val = mrb_iv_remove(mrb, self, sym);
- if (UNDEF_P(val)) {
+ if (mrb_undef_p(val)) {
mrb_name_error(mrb, sym, "instance variable %s not defined", mrb_sym2name(mrb, sym));
}
return val;