MCPcopy Create free account
hub / github.com/F-Stack/f-stack / preinit_state

Function preinit_state

freebsd/contrib/openzfs/module/lua/lstate.c:201–218  ·  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

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