MCPcopy Create free account
hub / github.com/DFHack/dfhack / luaG_tointerror

Function luaG_tointerror

depends/lua/src/ldebug.c:610–615  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

608** Error when both values are convertible to numbers, but not to integers
609*/
610l_noret luaG_tointerror (lua_State *L, const TValue *p1, const TValue *p2) {
611 lua_Integer temp;
612 if (!tointeger(p1, &temp))
613 p2 = p1;
614 luaG_runerror(L, "number%s has no integer representation", varinfo(L, p2));
615}
616
617
618l_noret luaG_ordererror (lua_State *L, const TValue *p1, const TValue *p2) {

Callers 1

luaT_trybinTMFunction · 0.85

Calls 2

luaG_runerrorFunction · 0.85
varinfoFunction · 0.85

Tested by

no test coverage detected