luaur-vm 0.1.0

The Luau register virtual machine and standard library (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
#[allow(non_upper_case_globals)]
#[macro_export]
macro_rules! luaR_checkoffsetinbounds {
    ($inst:expr, $offset:expr) => {
        (core::ffi::c_int::from($offset) >= 0)
            && (core::ffi::c_int::from($offset) < unsafe { (*(*$inst).lclass).numberofallmembers })
    };
}

pub use luaR_checkoffsetinbounds;