MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / preinit_state

Function preinit_state

Source/Misc/lua/src/lua.c:8999–9017  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8997
8998
8999static void preinit_state (lua_State *L, global_State *g) {
9000G(L) = g;
9001L->stack = NULL;
9002L->stacksize = 0;
9003L->errorJmp = NULL;
9004L->hook = NULL;
9005L->hookmask = 0;
9006L->basehookcount = 0;
9007L->allowhook = 1;
9008resethookcount(L);
9009L->openupval = NULL;
9010L->size_ci = 0;
9011L->nCcalls = L->baseCcalls = 0;
9012L->status = 0;
9013L->base_ci = L->ci = NULL;
9014L->savedpc = NULL;
9015L->errfunc = 0;
9016setnilvalue(gt(L));
9017}
9018
9019
9020static void close_state (lua_State *L) {

Callers 2

luaE_newthreadFunction · 0.85
lua_newstateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected