MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / lua_createtable

Function lua_createtable

src/Chain/libraries/glua/lapi.cpp:686–696  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 15

os_dateFunction · 0.85
packFunction · 0.85
ll_seeallFunction · 0.85
createsearcherstableFunction · 0.85
createclibstableFunction · 0.85
str_splitFunction · 0.85
createmetatableFunction · 0.85
luaL_newmetatableFunction · 0.85
createargtableFunction · 0.85
lua_execute_contract_apiFunction · 0.85
luaL_findtableFunction · 0.85

Calls 2

luaH_newFunction · 0.85
luaH_resizeFunction · 0.85

Tested by

no test coverage detected