diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-06-30 17:52:21 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-06-30 23:59:05 +0900 |
commit | 0d0841ad4c08ef30a9aaa3012021f17b91e7ee7f (patch) | |
tree | 8da489a09480c9c413b75dba26f4b8dc343c40c3 /vm_core.h | |
parent | c1432a481615c7f1ad2c1426f0617f73599e2493 (diff) |
Compile code for lazy ISeq loding always
Diffstat (limited to 'vm_core.h')
-rw-r--r-- | vm_core.h | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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; } |