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

Function lua_createtable

third-party/lua-5.5.0/src/lapi.c:792–802  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

790
791
792LUA_API void lua_createtable (lua_State *L, int narray, int nrec) {
793 Table *t;
794 lua_lock(L);
795 t = luaH_new(L);
796 sethvalue2s(L, L->top.p, t);
797 api_incr_top(L);
798 if (narray > 0 || nrec > 0)
799 luaH_resize(L, t, cast_uint(narray), cast_uint(nrec));
800 luaC_checkGC(L);
801 lua_unlock(L);
802}
803
804
805LUA_API int lua_getmetatable (lua_State *L, int objindex) {

Callers 6

createargtableFunction · 0.70
luaL_newmetatableFunction · 0.70
tcreateFunction · 0.70
tpackFunction · 0.70
createsearcherstableFunction · 0.70
os_dateFunction · 0.70

Calls 2

luaH_newFunction · 0.70
luaH_resizeFunction · 0.70

Tested by

no test coverage detected