diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-07-01 15:14:27 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-07-01 15:14:27 +0900 |
commit | 1a6f3becbbd2b6f497dc6a5ebcc01316d5564243 (patch) | |
tree | 4a809777ce4db91c4c817304db896abbb10b5fdc /vm_core.h | |
parent | 2952dbad5eedb3ed7d0bfdd8b6c7a546c775c76b (diff) |
Fallback `rb_iseq_complete`
For compilers that do not eliminate references to functions that are
never called, such as SunC.
Diffstat (limited to 'vm_core.h')
-rw-r--r-- | vm_core.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -552,6 +552,9 @@ struct rb_iseq_struct { #define USE_LAZY_LOAD 0 #endif +#if !USE_LAZY_LOAD +static inline const rb_iseq_t *rb_iseq_complete(const rb_iseq_t *iseq) {return 0;} +#endif const rb_iseq_t *rb_iseq_complete(const rb_iseq_t *iseq); static inline const rb_iseq_t * |