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