| 620 | |
| 621 | |
| 622 | void 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' */ |
no test coverage detected