Function rglua::lua::luaL_newstate
source ·
[−]Expand 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 None if the allocation failed (due to memory).
