MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / lua_createtable

Function lua_createtable

3rd/lua-5.4.3/src/lapi.c:756–766  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

754
755
756LUA_API void lua_createtable (lua_State *L, int narray, int nrec) {
757 Table *t;
758 lua_lock(L);
759 t = luaH_new(L);
760 sethvalue2s(L, L->top, t);
761 api_incr_top(L);
762 if (narray > 0 || nrec > 0)
763 luaH_resize(L, t, narray, nrec);
764 luaC_checkGC(L);
765 lua_unlock(L);
766}
767
768
769LUA_API int lua_getmetatable (lua_State *L, int objindex) {

Callers 6

createargtableFunction · 0.85
luaL_newmetatableFunction · 0.85
tpackFunction · 0.85
createsearcherstableFunction · 0.85
createclibstableFunction · 0.85
os_dateFunction · 0.85

Calls 2

luaH_newFunction · 0.85
luaH_resizeFunction · 0.85

Tested by

no test coverage detected