MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / luaT_tryconcatTM

Function luaT_tryconcatTM

third-party/lua-5.5.0/src/ltm.c:173–177  ·  view source on GitHub ↗

** The use of 'p1' after 'callbinTM' is safe because, when a tag ** method is not found, 'callbinTM' cannot change the stack. */

Source from the content-addressed store, hash-verified

171** method is not found, 'callbinTM' cannot change the stack.
172*/
173void luaT_tryconcatTM (lua_State *L) {
174 StkId p1 = L->top.p - 2; /* first argument */
175 if (l_unlikely(callbinTM(L, s2v(p1), s2v(p1 + 1), p1, TM_CONCAT) < 0))
176 luaG_concaterror(L, s2v(p1), s2v(p1 + 1));
177}
178
179
180void luaT_trybinassocTM (lua_State *L, const TValue *p1, const TValue *p2,

Callers 1

luaV_concatFunction · 0.70

Calls 2

callbinTMFunction · 0.70
luaG_concaterrorFunction · 0.70

Tested by

no test coverage detected