MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / callTM

Function callTM

deps/lua/src/lvm.c:96–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94
95
96static void callTM (lua_State *L, const TValue *f, const TValue *p1,
97 const TValue *p2, const TValue *p3) {
98 setobj2s(L, L->top, f); /* push function */
99 setobj2s(L, L->top+1, p1); /* 1st argument */
100 setobj2s(L, L->top+2, p2); /* 2nd argument */
101 setobj2s(L, L->top+3, p3); /* 3th argument */
102 luaD_checkstack(L, 4);
103 L->top += 4;
104 luaD_call(L, L->top - 4, 0);
105}
106
107
108void luaV_gettable (lua_State *L, const TValue *t, TValue *key, StkId val) {

Callers 1

luaV_settableFunction · 0.85

Calls 1

luaD_callFunction · 0.85

Tested by

no test coverage detected