Function lua_newstate

Source
pub unsafe extern "C-unwind" fn lua_newstate(
    f: lua_Alloc,
    ud: *mut c_void,
) -> *mut lua_State
Expand description

Creates a new lua_State.

This function takes an allocator function and a userdata pointer.