MCPcopy Create free account
hub / github.com/F-Stack/f-stack / lua_createtable

Function lua_createtable

freebsd/contrib/openzfs/module/lua/lapi.c:670–680  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

668
669
670LUA_API void lua_createtable (lua_State *L, int narray, int nrec) {
671 Table *t;
672 lua_lock(L);
673 luaC_checkGC(L);
674 t = luaH_new(L);
675 sethvalue(L, L->top, t);
676 api_incr_top(L);
677 if (narray > 0 || nrec > 0)
678 luaH_resize(L, t, narray, nrec);
679 lua_unlock(L);
680}
681
682
683LUA_API int lua_getmetatable (lua_State *L, int objindex) {

Callers 3

createmetatableFunction · 0.70
luaL_findtableFunction · 0.70
packFunction · 0.70

Calls 2

luaH_resizeFunction · 0.85
luaH_newFunction · 0.70

Tested by

no test coverage detected