From c7edd997e87d609feee894bf61b45f7f0a956eba Mon Sep 17 00:00:00 2001 From: ko1 Date: Wed, 10 Jun 2015 23:42:01 +0000 Subject: * 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 --- vm_method.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vm_method.c') 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; } -- cgit v1.2.3