MCPcopy Create free account
hub / github.com/PlutoLang/Pluto / tcreate

Function tcreate

src/ltablib.cpp:65–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

lua_createtableFunction · 0.70

Tested by

no test coverage detected