pub fn luaL_newstate() -> LuaStateExpand description
Creates a new Lua state. This calls lua_newstate with an allocator based on the standard C realloc function and then sets a panic function (see lua_atpanic) that prints an error message to the standard error output in case of fatal errors.
ยงReturns
The newly created LuaState, or std::ptr::null_mut() if the allocation failed (due to memory).