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