MCPcopy Create free account
hub / github.com/Tencent/xLua / lua_createtable

Function lua_createtable

WebGLPlugins/lapi.c:683–693  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 12

lua_newtableMethod · 0.85
createargtableFunction · 0.85
createmetatableFunction · 0.85
xlua_pushcstableFunction · 0.85
luaL_newmetatableFunction · 0.85
luaL_findtableFunction · 0.85
packFunction · 0.85
ll_seeallFunction · 0.85
createsearcherstableFunction · 0.85
createclibstableFunction · 0.85
os_dateFunction · 0.85
db_sethookFunction · 0.85

Calls 2

luaH_newFunction · 0.85
luaH_resizeFunction · 0.85

Tested by

no test coverage detected