MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / luaG_tointerror

Function luaG_tointerror

src/Chain/libraries/glua/ldebug.cpp:614–619  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

612** Error when both values are convertible to numbers, but not to integers
613*/
614void luaG_tointerror(lua_State *L, const TValue *p1, const TValue *p2) {
615 lua_Integer temp;
616 if (!tointeger(p1, &temp))
617 p2 = p1;
618 luaG_runerror(L, "number%s has no integer representation", varinfo(L, p2));
619}
620
621
622void 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