MCPcopy Create free account
hub / github.com/F-Stack/f-stack / luaG_aritherror

Function luaG_aritherror

freebsd/contrib/openzfs/module/lua/ldebug.c:553–558  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

551
552
553l_noret luaG_aritherror (lua_State *L, const TValue *p1, const TValue *p2) {
554 TValue temp;
555 if (luaV_tonumber(p1, &temp) == NULL)
556 p2 = p1; /* first operand is wrong */
557 luaG_typeerror(L, p2, "perform arithmetic on");
558}
559
560
561l_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