MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / setn

Function setn

Source/Misc/lua/src/lua.c:14624–14633  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14622
14623
14624static int setn (lua_State *L) {
14625luaL_checktype(L, 1, LUA_TTABLE);
14626#ifndef luaL_setn
14627luaL_setn(L, 1, luaL_checkint(L, 2));
14628#else
14629luaL_error(L, LUA_QL("setn") " is obsolete");
14630#endif
14631lua_pushvalue(L, 1);
14632return 1;
14633}
14634
14635
14636static 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