| 731 | |
| 732 | |
| 733 | l_noret luaG_ordererror (lua_State *L, const TValue *p1, const TValue *p2) { |
| 734 | const char *t1 = luaT_objtypename(L, p1); |
| 735 | const char *t2 = luaT_objtypename(L, p2); |
| 736 | if (strcmp(t1, t2) == 0) |
| 737 | luaG_runerror(L, "attempt to compare two %s values", t1); |
| 738 | else |
| 739 | luaG_runerror(L, "attempt to compare %s with %s", t1, t2); |
| 740 | } |
| 741 | |
| 742 | |
| 743 | /* add src:line information to 'msg' */ |
no test coverage detected