MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / preinit_state

Function preinit_state

third-party/lua-5.2.4/src/lstate.c:204–220  ·  view source on GitHub ↗

** preinitialize a state with consistent values without allocating ** any memory (to avoid errors) */

Source from the content-addressed store, hash-verified

202** any memory (to avoid errors)
203*/
204static void preinit_state (lua_State *L, global_State *g) {
205 G(L) = g;
206 L->stack = NULL;
207 L->ci = NULL;
208 L->stacksize = 0;
209 L->errorJmp = NULL;
210 L->nCcalls = 0;
211 L->hook = NULL;
212 L->hookmask = 0;
213 L->basehookcount = 0;
214 L->allowhook = 1;
215 resethookcount(L);
216 L->openupval = NULL;
217 L->nny = 1;
218 L->status = LUA_OK;
219 L->errfunc = 0;
220}
221
222
223static void close_state (lua_State *L) {

Callers 2

lua_newthreadFunction · 0.70
lua_newstateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected