MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / tcreate

Function tcreate

third-party/lua-5.5.0/src/ltablib.c:62–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60
61
62static int tcreate (lua_State *L) {
63 lua_Unsigned sizeseq = (lua_Unsigned)luaL_checkinteger(L, 1);
64 lua_Unsigned sizerest = (lua_Unsigned)luaL_optinteger(L, 2, 0);
65 luaL_argcheck(L, sizeseq <= cast_uint(INT_MAX), 1, "out of range");
66 luaL_argcheck(L, sizerest <= cast_uint(INT_MAX), 2, "out of range");
67 lua_createtable(L, cast_int(sizeseq), cast_int(sizerest));
68 return 1;
69}
70
71
72static int tinsert (lua_State *L) {

Callers

nothing calls this directly

Calls 3

luaL_checkintegerFunction · 0.70
luaL_optintegerFunction · 0.70
lua_createtableFunction · 0.70

Tested by

no test coverage detected