| 440 | |
| 441 | |
| 442 | LUALIB_API lua_Integer luaL_checkinteger (lua_State *L, int arg) { |
| 443 | int isnum; |
| 444 | lua_Integer d = lua_tointegerx(L, arg, &isnum); |
| 445 | if (!isnum) { |
| 446 | interror(L, arg); |
| 447 | } |
| 448 | return d; |
| 449 | } |
| 450 | |
| 451 | |
| 452 | LUALIB_API lua_Integer luaL_optinteger (lua_State *L, int arg, |
no test coverage detected