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

Function luaG_aritherror

third-party/lua-5.2.4/src/ldebug.c:556–561  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

554
555
556l_noret luaG_aritherror (lua_State *L, const TValue *p1, const TValue *p2) {
557 TValue temp;
558 if (luaV_tonumber(p1, &temp) == NULL)
559 p2 = p1; /* first operand is wrong */
560 luaG_typeerror(L, p2, "perform arithmetic on");
561}
562
563
564l_noret luaG_ordererror (lua_State *L, const TValue *p1, const TValue *p2) {

Callers 1

luaV_arithFunction · 0.70

Calls 2

luaV_tonumberFunction · 0.70
luaG_typeerrorFunction · 0.70

Tested by

no test coverage detected