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

Function luaG_tointerror

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

** Error when both values are convertible to numbers, but not to integers */

Source from the content-addressed store, hash-verified

773** Error when both values are convertible to numbers, but not to integers
774*/
775l_noret luaG_tointerror (lua_State *L, const TValue *p1, const TValue *p2) {
776 lua_Integer temp;
777 if (!luaV_tointegerns(p1, &temp, LUA_FLOORN2I))
778 p2 = p1;
779 luaG_runerror(L, "number%s has no integer representation", varinfo(L, p2));
780}
781
782
783l_noret luaG_ordererror (lua_State *L, const TValue *p1, const TValue *p2) {

Callers 1

luaT_trybinTMFunction · 0.85

Calls 3

luaV_tointegernsFunction · 0.85
luaG_runerrorFunction · 0.85
varinfoFunction · 0.85

Tested by

no test coverage detected