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

Function lua_settop

other_src/lua/src/lapi.cpp:165–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163
164
165LUA_API void lua_settop (lua_State *L, int idx) {
166 lua_lock(L);
167 if (idx >= 0) {
168 api_check(L, idx <= L->stack_last - L->base);
169 while (L->top < L->base + idx)
170 setnilvalue(L->top++);
171 L->top = L->base + idx;
172 }
173 else {
174 api_check(L, -(idx+1) <= (L->top - L->base));
175 L->top += idx+1; /* `subtract' index (index is negative) */
176 }
177 lua_unlock(L);
178}
179
180
181LUA_API void lua_remove (lua_State *L, int idx) {

Callers 15

os_timeFunction · 0.70
treadonlyFunction · 0.70
sortFunction · 0.70
ll_requireFunction · 0.70
matchFunction · 0.70
fix_lFunction · 0.70
pattern_lFunction · 0.70
locale_lFunction · 0.70
setmaxFunction · 0.70
str_dumpFunction · 0.70
gmatchFunction · 0.70
io_readlineFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected