MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / lua_createtable

Function lua_createtable

extlibs/lua/src/lapi.c:721–731  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

719
720
721LUA_API void lua_createtable (lua_State *L, int narray, int nrec) {
722 Table *t;
723 lua_lock(L);
724 t = luaH_new(L);
725 sethvalue2s(L, L->top, t);
726 api_incr_top(L);
727 if (narray > 0 || nrec > 0)
728 luaH_resize(L, t, narray, nrec);
729 luaC_checkGC(L);
730 lua_unlock(L);
731}
732
733
734LUA_API int lua_getmetatable (lua_State *L, int objindex) {

Callers 12

createargtableFunction · 0.85
luaL_newmetatableFunction · 0.85
tpackFunction · 0.85
createsearcherstableFunction · 0.85
createclibstableFunction · 0.85
os_dateFunction · 0.85
pushMethod · 0.85
pushMethod · 0.85
handle_policyFunction · 0.85
set_undefined_methods_onFunction · 0.85
register_usertypeFunction · 0.85
createMethod · 0.85

Calls 2

luaH_newFunction · 0.85
luaH_resizeFunction · 0.85

Tested by

no test coverage detected