MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / luaG_aritherror

Function luaG_aritherror

other_src/lua/src/ldebug.cpp:587–592  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

585
586
587void luaG_aritherror (lua_State *L, const TValue *p1, const TValue *p2) {
588 TValue temp;
589 if (luaV_tonumber(p1, &temp) == NULL)
590 p2 = p1; /* first operand is wrong */
591 luaG_typeerror(L, p2, "perform arithmetic on");
592}
593
594
595int luaG_ordererror (lua_State *L, const TValue *p1, const TValue *p2) {

Callers 1

ArithFunction · 0.70

Calls 2

luaV_tonumberFunction · 0.70
luaG_typeerrorFunction · 0.70

Tested by

no test coverage detected