| 10399 | |
| 10400 | |
| 10401 | LUALIB_API lua_Integer luaL_checkinteger (lua_State *L, int narg) { |
| 10402 | lua_Integer d = lua_tointeger(L, narg); |
| 10403 | if (d == 0 && !lua_isnumber(L, narg)) /* avoid extra test when d is not 0 */ |
| 10404 | tag_error(L, narg, LUA_TNUMBER); |
| 10405 | return d; |
| 10406 | } |
| 10407 | |
| 10408 | |
| 10409 | LUALIB_API lua_Integer luaL_optinteger (lua_State *L, int narg, |
no test coverage detected