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

Function setn

other_src/lua/src/ltablib.cpp:85–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83
84
85static int setn (lua_State *L) {
86 luaL_checktype(L, 1, LUA_TTABLE);
87#ifndef luaL_setn
88 luaL_setn(L, 1, luaL_checkint(L, 2));
89#else
90 luaL_error(L, LUA_QL("setn") " is obsolete");
91#endif
92 lua_pushvalue(L, 1);
93 return 1;
94}
95
96
97static int tinsert (lua_State *L) {

Callers

nothing calls this directly

Calls 4

luaL_checktypeFunction · 0.70
luaL_setnFunction · 0.70
luaL_errorFunction · 0.70
lua_pushvalueFunction · 0.70

Tested by

no test coverage detected