MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / luaG_ordererror

Function luaG_ordererror

src/Chain/libraries/glua/ldebug.cpp:622–629  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

620
621
622void luaG_ordererror(lua_State *L, const TValue *p1, const TValue *p2) {
623 const char *t1 = objtypename(p1);
624 const char *t2 = objtypename(p2);
625 if (t1 == t2)
626 luaG_runerror(L, "attempt to compare two %s values", t1);
627 else
628 luaG_runerror(L, "attempt to compare %s with %s", t1, t2);
629}
630
631
632/* add src:line information to 'msg' */

Callers 2

luaV_lessthanFunction · 0.85
luaV_lessequalFunction · 0.85

Calls 1

luaG_runerrorFunction · 0.85

Tested by

no test coverage detected