| 2 | |
| 3 | #ifdef LUAJIT |
| 4 | int lua_isinteger(lua_State *L, int idx) { |
| 5 | if (lua_type(L, idx) == LUA_TNUMBER) |
| 6 | { |
| 7 | lua_Number n = lua_tonumber(L, idx); |
| 8 | return n == (lua_Integer)n; |
| 9 | } |
| 10 | return 0; |
| 11 | } |
| 12 | |
| 13 | int luaL_len(lua_State *L, int idx) { |
| 14 | return lua_objlen(L, idx); |
no test coverage detected