summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-06-30 17:52:21 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-06-30 23:59:05 +0900
commit0d0841ad4c08ef30a9aaa3012021f17b91e7ee7f (patch)
tree8da489a09480c9c413b75dba26f4b8dc343c40c3 /vm_core.h
parentc1432a481615c7f1ad2c1426f0617f73599e2493 (diff)
Compile code for lazy ISeq loding always
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/vm_core.h b/vm_core.h
index f0f393e497..a76f57e596 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -548,22 +548,18 @@ struct rb_iseq_struct {
#define ISEQ_BODY(iseq) ((iseq)->body)
-#ifndef USE_LAZY_LOAD
+#if !defined(USE_LAZY_LOAD) || !(USE_LAZY_LOAD+0)
#define USE_LAZY_LOAD 0
#endif
-#if USE_LAZY_LOAD
const rb_iseq_t *rb_iseq_complete(const rb_iseq_t *iseq);
-#endif
static inline const rb_iseq_t *
rb_iseq_check(const rb_iseq_t *iseq)
{
-#if USE_LAZY_LOAD
- if (ISEQ_BODY(iseq) == NULL) {
+ if (USE_LAZY_LOAD && ISEQ_BODY(iseq) == NULL) {
rb_iseq_complete((rb_iseq_t *)iseq);
}
-#endif
return iseq;
}