MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / luaG_aritherror

Function luaG_aritherror

lua/ldebug.c:593–598  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

591
592
593void luaG_aritherror (lua_State *L, const TValue *p1, const TValue *p2) {
594 TValue temp;
595 if (luaV_tonumber(p1, &temp) == NULL)
596 p2 = p1; /* first operand is wrong */
597 luaG_typeerror(L, p2, "perform arithmetic on");
598}
599
600
601int 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