Fallback rb_iseq_complete

For compilers that do not eliminate references to functions that are
never called, such as SunC.
This commit is contained in:
Nobuyoshi Nakada 2023-07-01 15:14:27 +09:00
parent 2952dbad5e
commit 1a6f3becbb
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

View File

@ -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 *