summaryrefslogtreecommitdiff
path: root/vm_method.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-10 23:42:01 (GMT)
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-10 23:42:01 (GMT)
commitc7edd997e87d609feee894bf61b45f7f0a956eba (patch)
tree8c91f908870749c1bf6c53786745126142a58e06 /vm_method.c
parent85647d9f2b4b2da17827cc1d613f425748a39b3f (diff)
* vm.c: use VM_ASSERT instead of assert().
* vm_args.c: ditto. * vm_insnhelper.c: ditto. * vm_method.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_method.c')
-rw-r--r--vm_method.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vm_method.c b/vm_method.c
index 19ad5d3..e9d3ee2 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -135,7 +135,7 @@ rb_method_definition_release(rb_method_definition_t *def)
{
if (def != NULL) {
const int count = def->alias_count;
- if (METHOD_DEBUG) assert(count >= 0);
+ VM_ASSERT(count >= 0);
if (count == 0) {
if (METHOD_DEBUG) fprintf(stderr, "-%p-%s:%d\n", def, rb_id2name(def->original_id), count);
@@ -258,7 +258,7 @@ rb_method_definition_set(rb_method_definition_t *def, void *opts)
DEF_OBJ_WRITE(&def->body.attr.location, rb_ary_freeze(location));
}
else {
- assert(def->body.attr.location == 0);
+ VM_ASSERT(def->body.attr.location == 0);
}
return;
}
@@ -340,7 +340,7 @@ rb_method_entry_create(ID called_id, VALUE klass, rb_method_visibility_t visi, r
METHOD_ENTRY_SAFE(me) = rb_safe_level();
rb_method_definition_reset(me, def);
- assert(def != NULL);
+ VM_ASSERT(def != NULL);
return me;
}