luaur-code-gen 0.1.3

Native (A64/X64) code generation for Luau (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[macro_export]
#[allow(non_snake_case)]
macro_rules! VM_INTERRUPT {
    ($L:expr) => {
        unsafe {
            let l_state = $L;
            let interrupt_fn = (*(*l_state).global).cb.interrupt;
            if luaur_common::LUAU_UNLIKELY!(!interrupt_fn.is_null()) {
                interrupt_fn(l_state, 0);
            }
        }
    };
}

pub use VM_INTERRUPT;