| 212 | |
| 213 | |
| 214 | LUALIB_API lua_Integer luaL_checkinteger (lua_State *L, int narg) { |
| 215 | lua_Integer d = lua_tointeger(L, narg); |
| 216 | if (d == 0 && !lua_isnumber(L, narg)) /* avoid extra test when d is not 0 */ |
| 217 | tag_error(L, narg, LUA_TNUMBER); |
| 218 | return d; |
| 219 | } |
| 220 | |
| 221 | |
| 222 | LUALIB_API lua_Integer luaL_optinteger (lua_State *L, int narg, |
nothing calls this directly
no test coverage detected