1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Use CPDEBUG for debug code

This commit is contained in:
Alan Wu 2019-10-21 12:56:44 -04:00 committed by 卜部昌平
parent 89e7997622
commit f1de438380
Notes: git 2019-10-24 18:04:07 +09:00

View file

@ -549,8 +549,7 @@ verify_list(ISEQ_ARG_DECLARE const char *info, LINK_ANCHOR *const anchor)
static void static void
verify_call_cache(rb_iseq_t *iseq) verify_call_cache(rb_iseq_t *iseq)
{ {
return; /* comment out to enable */ #if CPDEBUG
VALUE *original = rb_iseq_original_iseq(iseq); VALUE *original = rb_iseq_original_iseq(iseq);
size_t i = 0; size_t i = 0;
while (i < iseq->body->iseq_size) { while (i < iseq->body->iseq_size) {
@ -569,6 +568,7 @@ verify_call_cache(rb_iseq_t *iseq)
} }
i += insn_len(insn); i += insn_len(insn);
} }
#endif
} }
/* /*