MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / preinit_state

Function preinit_state

other_src/lua/src/lstate.cpp:86–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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