luaL_newstate

luaL_newstate[-0, +0, โ€“]

lua_State *luaL_newstate (void);

Creates a new Lua state. It calls lua_newstate with an allocator based on the standard C realloc function and then sets a panic function (see ยง4.6) that prints an error message to the standard error output in case of fatal errors.

Returns the new state, or NULL if there is a memory allocation error.

doc_lua
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.