MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / luaG_ordererror

Function luaG_ordererror

Source/Misc/lua/src/lua.c:5104–5112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5102
5103
5104int luaG_ordererror (lua_State *L, const TValue *p1, const TValue *p2) {
5105const char *t1 = luaT_typenames[ttype(p1)];
5106const char *t2 = luaT_typenames[ttype(p2)];
5107if (t1[2] == t2[2])
5108luaG_runerror(L, "attempt to compare two %s values", t1);
5109else
5110luaG_runerror(L, "attempt to compare %s with %s", t1, t2);
5111return 0;
5112}
5113
5114
5115static void addinfo (lua_State *L, const char *msg) {

Callers 2

luaV_lessthanFunction · 0.85
lessequalFunction · 0.85

Calls 1

luaG_runerrorFunction · 0.85

Tested by

no test coverage detected