MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / callTMres

Function callTMres

Source/Misc/lua/src/lua.c:14913–14925  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14911
14912
14913static void callTMres (lua_State *L, StkId res, const TValue *f,
14914const TValue *p1, const TValue *p2) {
14915ptrdiff_t result = savestack(L, res);
14916setobj2s(L, L->top, f); /* push function */
14917setobj2s(L, L->top+1, p1); /* 1st argument */
14918setobj2s(L, L->top+2, p2); /* 2nd argument */
14919luaD_checkstack(L, 3);
14920L->top += 3;
14921luaD_call(L, L->top - 3, 1);
14922res = restorestack(L, result);
14923L->top--;
14924setobjs2s(L, res, L->top);
14925}
14926
14927
14928

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