MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / luaG_ordererror

Function luaG_ordererror

lib/lua/src/ldebug.c:803–810  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

801
802
803l_noret luaG_ordererror (lua_State *L, const TValue *p1, const TValue *p2) {
804 const char *t1 = luaT_objtypename(L, p1);
805 const char *t2 = luaT_objtypename(L, p2);
806 if (strcmp(t1, t2) == 0)
807 luaG_runerror(L, "attempt to compare two %s values", t1);
808 else
809 luaG_runerror(L, "attempt to compare %s with %s", t1, t2);
810}
811
812
813/* add src:line information to 'msg' */

Callers 1

luaT_callorderTMFunction · 0.85

Calls 2

luaT_objtypenameFunction · 0.85
luaG_runerrorFunction · 0.85

Tested by

no test coverage detected