MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / luaG_tointerror

Function luaG_tointerror

third-party/lua-5.5.0/src/ldebug.c:799–804  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

797** Error when both values are convertible to numbers, but not to integers
798*/
799l_noret luaG_tointerror (lua_State *L, const TValue *p1, const TValue *p2) {
800 lua_Integer temp;
801 if (!luaV_tointegerns(p1, &temp, LUA_FLOORN2I))
802 p2 = p1;
803 luaG_runerror(L, "number%s has no integer representation", varinfo(L, p2));
804}
805
806
807l_noret luaG_ordererror (lua_State *L, const TValue *p1, const TValue *p2) {

Callers 1

luaT_trybinTMFunction · 0.70

Calls 3

luaV_tointegernsFunction · 0.70
luaG_runerrorFunction · 0.70
varinfoFunction · 0.70

Tested by

no test coverage detected