Skip to main content

luaur_vm/functions/
initheader.rs

1use crate::records::header::Header;
2use crate::records::lua_state::lua_State;
3
4#[inline]
5pub fn initheader(L: *mut lua_State, h: *mut Header) {
6    unsafe {
7        (*h).L = L;
8        (*h).islittle = 1; // nativeendian.little is assumed to be 1 (true) for little-endian systems
9        (*h).maxalign = 1;
10    }
11}