| 3603 | #if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM <= 502 |
| 3604 | |
| 3605 | COMPAT53_API int lua_geti(lua_State* L, int index, lua_Integer i) { |
| 3606 | index = lua_absindex(L, index); |
| 3607 | lua_pushinteger(L, i); |
| 3608 | lua_gettable(L, index); |
| 3609 | return lua_type(L, -1); |
| 3610 | } |
| 3611 | |
| 3612 | COMPAT53_API int lua_isinteger(lua_State* L, int index) { |
| 3613 | if (lua_type(L, index) == LUA_TNUMBER) { |
no test coverage detected