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

Function preinit_state

app/redis-6.2.6/deps/lua/src/lstate.c:84–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82
83
84static void preinit_state (lua_State *L, global_State *g) {
85 G(L) = g;
86 L->stack = NULL;
87 L->stacksize = 0;
88 L->errorJmp = NULL;
89 L->hook = NULL;
90 L->hookmask = 0;
91 L->basehookcount = 0;
92 L->allowhook = 1;
93 resethookcount(L);
94 L->openupval = NULL;
95 L->size_ci = 0;
96 L->nCcalls = L->baseCcalls = 0;
97 L->status = 0;
98 L->base_ci = L->ci = NULL;
99 L->savedpc = NULL;
100 L->errfunc = 0;
101 setnilvalue(gt(L));
102}
103
104
105static void close_state (lua_State *L) {

Callers 2

luaE_newthreadFunction · 0.70
lua_newstateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected