luaur-vm 0.1.1

The Luau register virtual machine and standard library (Rust).
Documentation
1
2
3
4
5
6
7
8
pub const LUAI_MAXCSTACK: i32 = 8000;

pub const LUA_GLOBALSINDEX: i32 = -LUAI_MAXCSTACK - 2002;

#[inline(always)]
pub const fn lua_upvalueindex(i: i32) -> i32 {
    LUA_GLOBALSINDEX - i
}