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:
parent
89e7997622
commit
f1de438380
Notes:
git
2019-10-24 18:04:07 +09:00
1 changed files with 2 additions and 2 deletions
|
@ -549,8 +549,7 @@ verify_list(ISEQ_ARG_DECLARE const char *info, LINK_ANCHOR *const anchor)
|
|||
static void
|
||||
verify_call_cache(rb_iseq_t *iseq)
|
||||
{
|
||||
return; /* comment out to enable */
|
||||
|
||||
#if CPDEBUG
|
||||
VALUE *original = rb_iseq_original_iseq(iseq);
|
||||
size_t i = 0;
|
||||
while (i < iseq->body->iseq_size) {
|
||||
|
@ -569,6 +568,7 @@ verify_call_cache(rb_iseq_t *iseq)
|
|||
}
|
||||
i += insn_len(insn);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue