MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / lua_createtable

Function lua_createtable

xrepo/packages/l/lua/port/lua/src/lapi.c:766–776  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

764
765
766LUA_API void lua_createtable (lua_State *L, int narray, int nrec) {
767 Table *t;
768 lua_lock(L);
769 t = luaH_new(L);
770 sethvalue2s(L, L->top, t);
771 api_incr_top(L);
772 if (narray > 0 || nrec > 0)
773 luaH_resize(L, t, narray, nrec);
774 luaC_checkGC(L);
775 lua_unlock(L);
776}
777
778
779LUA_API int lua_getmetatable (lua_State *L, int objindex) {

Callers 7

createargtableFunction · 0.70
luaL_newmetatableFunction · 0.70
tpackFunction · 0.70
createsearcherstableFunction · 0.70
createclibstableFunction · 0.70
os_dateFunction · 0.70
skr_lua_newstateFunction · 0.50

Calls 2

luaH_resizeFunction · 0.85
luaH_newFunction · 0.70

Tested by

no test coverage detected