| 4242 | } |
| 4243 | |
| 4244 | COMPAT53_API int lua_isinteger(lua_State* L, int index) { |
| 4245 | if (lua_type(L, index) == LUA_TNUMBER) { |
| 4246 | lua_Number n = lua_tonumber(L, index); |
| 4247 | lua_Integer i = lua_tointeger(L, index); |
| 4248 | if (i == n) |
| 4249 | return 1; |
| 4250 | } |
| 4251 | return 0; |
| 4252 | } |
| 4253 | |
| 4254 | COMPAT53_API lua_Integer lua_tointegerx(lua_State* L, int i, int* isnum) { |
| 4255 | int ok = 0; |
no test coverage detected