MCPcopy Create free account
hub / github.com/axmolengine/axmol / lua_Integer lua_tointegerx

Function lua_Integer lua_tointegerx

3rdparty/lua/sol/sol.hpp:4254–4267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4252}
4253
4254COMPAT53_API lua_Integer lua_tointegerx(lua_State* L, int i, int* isnum) {
4255 int ok = 0;
4256 lua_Number n = lua_tonumberx(L, i, &ok);
4257 if (ok) {
4258 if (n == (lua_Integer)n) {
4259 if (isnum)
4260 *isnum = 1;
4261 return (lua_Integer)n;
4262 }
4263 }
4264 if (isnum)
4265 *isnum = 0;
4266 return 0;
4267}
4268
4269static void compat53_reverse(lua_State* L, int a, int b) {
4270 for (; a < b; ++a, --b) {

Callers

nothing calls this directly

Calls 1

lua_tonumberxFunction · 0.85

Tested by

no test coverage detected