MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / luaG_aritherror

Function luaG_aritherror

deps/lua/src/ldebug.c:588–593  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

ArithFunction · 0.85

Calls 2

luaV_tonumberFunction · 0.85
luaG_typeerrorFunction · 0.85

Tested by

no test coverage detected