diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-08-06 13:25:23 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-08-06 18:45:40 +0900 |
commit | ef5b1d19c1573290bcf9d5b33bf12656825d2e3b (patch) | |
tree | 950a169d2eeae7994d7733203a5cd1ed329b5fa9 /vm.c | |
parent | acd27e3ec3f89d06fb63c24e0fb4ee597af9ad36 (diff) | |
download | ruby-ef5b1d19c1573290bcf9d5b33bf12656825d2e3b.tar.gz |
Turn `jit_exec` and `jit_compile` into macros if disabled
Diffstat (limited to 'vm.c')
-rw-r--r-- | vm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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" |