| 4252 | } |
| 4253 | |
| 4254 | COMPAT53_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 | |
| 4269 | static void compat53_reverse(lua_State* L, int a, int b) { |
| 4270 | for (; a < b; ++a, --b) { |
nothing calls this directly
no test coverage detected