MCPcopy Create free account
hub / github.com/defold/defold / callTMres

Function callTMres

engine/lua/src/lua/lvm.c:80–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78
79
80static void callTMres (lua_State *L, StkId res, const TValue *f,
81 const TValue *p1, const TValue *p2) {
82 ptrdiff_t result = savestack(L, res);
83 setobj2s(L, L->top, f); /* push function */
84 setobj2s(L, L->top+1, p1); /* 1st argument */
85 setobj2s(L, L->top+2, p2); /* 2nd argument */
86 luaD_checkstack(L, 3);
87 L->top += 3;
88 luaD_call(L, L->top - 3, 1);
89 res = restorestack(L, result);
90 L->top--;
91 setobjs2s(L, res, L->top);
92}
93
94
95

Callers 4

luaV_gettableFunction · 0.85
call_binTMFunction · 0.85
call_orderTMFunction · 0.85
luaV_equalvalFunction · 0.85

Calls 1

luaD_callFunction · 0.85

Tested by

no test coverage detected