LUA_STATE(3) | Library Functions Manual | LUA_STATE(3) |
lua_State
— opaque
structure that keeps the whole state of a Lua interpreter
#include
<lua.h>
typedef struct lua_State lua_State;
lua_State opaque structure that keeps the whole state of a Lua interpreter. The Lua library is fully reentrant: it has no global variables. All information about a state is kept in this structure. A pointer to this state must be passed as the first argument to every function in the library, except to lua_newstate(3), which creates a Lua state from scratch.
Roberto Ierusalimschy, Luiz Henrique de Figueiredo, and Waldemar Celes, Lua 5.1 Reference Manual.
The lua_State manual page is based on Lua Reference Manual 5.1 and was created by Sergey Bronnikov.
July 14, 2022 | Debian |