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

Function luaG_ordererror

other_src/lua/src/ldebug.cpp:595–603  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

593
594
595int luaG_ordererror (lua_State *L, const TValue *p1, const TValue *p2) {
596 const char *t1 = luaT_typenames[ttype(p1)];
597 const char *t2 = luaT_typenames[ttype(p2)];
598 if (t1[2] == t2[2])
599 luaG_runerror(L, "attempt to compare two %s values", t1);
600 else
601 luaG_runerror(L, "attempt to compare %s with %s", t1, t2);
602 return 0;
603}
604
605
606static void addinfo (lua_State *L, const char *msg) {

Callers 2

luaV_lessthanFunction · 0.70
lessequalFunction · 0.70

Calls 1

luaG_runerrorFunction · 0.70

Tested by

no test coverage detected