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
11
use crate::records::lua_table::LuaTable;

#[allow(non_snake_case)]
#[inline(always)]
pub unsafe fn getaboundary(t: *const LuaTable) -> core::ffi::c_int {
    if (*t).union.aboundary < 0 {
        -(*t).union.aboundary
    } else {
        (*t).sizearray
    }
}