diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-10 23:42:01 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-10 23:42:01 +0000 |
commit | aee4d60b055c41255c3457a0ef7d67277fb86ac5 (patch) | |
tree | 8c91f908870749c1bf6c53786745126142a58e06 /vm_method.c | |
parent | 6fcc74aec18693f669adcb2d9f90b73ac383701e (diff) | |
download | ruby-aee4d60b055c41255c3457a0ef7d67277fb86ac5.tar.gz |
* 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.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vm_method.c b/vm_method.c index 19ad5d3830..e9d3ee2484 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; } |