MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / setn

Function setn

deps/lua/src/ltablib.c:78–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76
77
78static int setn (lua_State *L) {
79 luaL_checktype(L, 1, LUA_TTABLE);
80#ifndef luaL_setn
81 luaL_setn(L, 1, luaL_checkint(L, 2));
82#else
83 luaL_error(L, LUA_QL("setn") " is obsolete");
84#endif
85 lua_pushvalue(L, 1);
86 return 1;
87}
88
89
90static int tinsert (lua_State *L) {

Callers

nothing calls this directly

Calls 4

luaL_checktypeFunction · 0.85
luaL_setnFunction · 0.85
luaL_errorFunction · 0.85
lua_pushvalueFunction · 0.85

Tested by

no test coverage detected