Turn jit_exec and jit_compile into macros if disabled

This commit is contained in:
Nobuyoshi Nakada 2023-08-06 13:25:23 +09:00
parent acd27e3ec3
commit ef5b1d19c1
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465
Notes: git 2023-08-06 10:48:34 +00:00

4
vm.c
View File

@ -421,8 +421,8 @@ jit_exec(rb_execution_context_t *ec)
}
}
#else
static inline rb_jit_func_t jit_compile(rb_execution_context_t *ec) { return 0; }
RBIMPL_ATTR_MAYBE_UNUSED() static inline VALUE jit_exec(rb_execution_context_t *ec) { return Qundef; }
# define jit_compile(ec) ((rb_jit_func_t)0)
# define jit_exec(ec) Qundef
#endif
#include "vm_insnhelper.c"