MCPcopy Create free account
hub / github.com/DFHack/dfhack / lua_createtable

Function lua_createtable

depends/lua/src/lapi.c:684–694  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

682
683
684LUA_API void lua_createtable (lua_State *L, int narray, int nrec) {
685 Table *t;
686 lua_lock(L);
687 t = luaH_new(L);
688 sethvalue(L, L->top, t);
689 api_incr_top(L);
690 if (narray > 0 || nrec > 0)
691 luaH_resize(L, t, narray, nrec);
692 luaC_checkGC(L);
693 lua_unlock(L);
694}
695
696
697LUA_API int lua_getmetatable (lua_State *L, int objindex) {

Callers 15

PushMethod · 0.85
PushInterfaceKeysMethod · 0.85
hotkey_pushBindArrayFunction · 0.85
internal_runCommandFunction · 0.85
PushFunction · 0.85
PushVectorFunction · 0.85
createargtableFunction · 0.85
createmetatableFunction · 0.85
luaL_newmetatableFunction · 0.85
luaL_findtableFunction · 0.85
packFunction · 0.85
ll_seeallFunction · 0.85

Calls 2

luaH_newFunction · 0.85
luaH_resizeFunction · 0.85

Tested by

no test coverage detected