| 740 | |
| 741 | |
| 742 | l_noret luaG_ordererror (lua_State *L, const TValue *p1, const TValue *p2) { |
| 743 | const char *t1 = luaT_objtypename(L, p1); |
| 744 | const char *t2 = luaT_objtypename(L, p2); |
| 745 | if (strcmp(t1, t2) == 0) |
| 746 | luaG_runerror(L, "attempt to compare two %s values", t1); |
| 747 | else |
| 748 | luaG_runerror(L, "attempt to compare %s with %s", t1, t2); |
| 749 | } |
| 750 | |
| 751 | |
| 752 | /* add src:line information to 'msg' */ |
no test coverage detected