diff options
author | Alan Wu <XrXr@users.noreply.github.com> | 2019-10-21 12:56:44 -0400 |
---|---|---|
committer | 卜部昌平 <shyouhei@ruby-lang.org> | 2019-10-24 18:03:42 +0900 |
commit | f1de438380893682257b8648784a0fe7714b1f9f (patch) | |
tree | bd4f7fd89ef147773d7de355a6d5d078ba67743c | |
parent | 89e7997622038f82115f34dbb4ea382e02bed163 (diff) | |
download | ruby-f1de438380893682257b8648784a0fe7714b1f9f.tar.gz |
Use CPDEBUG for debug code
-rw-r--r-- | compile.c | 4 |
1 files changed, 2 insertions, 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 } /* |