MCPcopy Create free account
hub / github.com/Cubitect/cubiomes-viewer / lua_createtable

Function lua_createtable

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 8

l_getStructuresFunction · 0.85
runCheckScriptFunction · 0.85
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