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::header::Header;
use crate::records::lua_state::lua_State;

#[inline]
pub fn initheader(L: *mut lua_State, h: *mut Header) {
    unsafe {
        (*h).L = L;
        (*h).islittle = 1; // nativeendian.little is assumed to be 1 (true) for little-endian systems
        (*h).maxalign = 1;
    }
}