summaryrefslogtreecommitdiff
path: root/zjit/src/lib.rs
diff options
context:
space:
mode:
authorTakashi Kokubun <[email protected]>2025-02-12 16:35:06 -0800
committerTakashi Kokubun <[email protected]>2025-04-18 21:52:58 +0900
commitd550a9b1244b2c73e7018bcadaf368c417938154 ()
treed36da63eb17889ecfff19e316bc9c95b3a483c3a /zjit/src/lib.rs
parente543b6a0309b465d95327d26b6a3e908377c24a3 (diff)
Initialize dummy globals for tests
Notes: Merged: https://.com/ruby/ruby/pull/13131
-rw-r--r--zjit/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
@@ -23,6 +23,7 @@ use crate::cruby::*;
pub static mut rb_zjit_enabled_p: bool = false;
/// Initialize ZJIT, given options allocated by rb_zjit_init_options()
#[no_mangle]
pub extern "C" fn rb_zjit_init(options: *const u8) {
// Catch panics to avoid UB for unwinding into C frames.