MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / luaG_ordererror

Function luaG_ordererror

xrepo/packages/l/lua/port/lua/src/ldebug.c:783–790  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

781
782
783l_noret luaG_ordererror (lua_State *L, const TValue *p1, const TValue *p2) {
784 const char *t1 = luaT_objtypename(L, p1);
785 const char *t2 = luaT_objtypename(L, p2);
786 if (strcmp(t1, t2) == 0)
787 luaG_runerror(L, "attempt to compare two %s values", t1);
788 else
789 luaG_runerror(L, "attempt to compare %s with %s", t1, t2);
790}
791
792
793/* add src:line information to 'msg' */

Callers 1

luaT_callorderTMFunction · 0.70

Calls 2

luaG_runerrorFunction · 0.85
luaT_objtypenameFunction · 0.70

Tested by

no test coverage detected