| 3078 | #if defined( LUA_VERSION_NUM ) && LUA_VERSION_NUM <= 502 |
| 3079 | |
| 3080 | COMPAT53_API int lua_geti(lua_State *L, int index, lua_Integer i) { |
| 3081 | index = lua_absindex(L, index); |
| 3082 | lua_pushinteger(L, i); |
| 3083 | lua_gettable(L, index); |
| 3084 | return lua_type(L, -1); |
| 3085 | } |
| 3086 | |
| 3087 | COMPAT53_API int lua_isinteger(lua_State *L, int index) { |
| 3088 | if (lua_type(L, index) == LUA_TNUMBER) { |
no test coverage detected