| 479 | |
| 480 | |
| 481 | LUALIB_API lua_Integer luaL_checkinteger (lua_State *L, int arg) { |
| 482 | int isnum; |
| 483 | lua_Integer d = lua_tointegerx(L, arg, &isnum); |
| 484 | if (l_unlikely(!isnum)) { |
| 485 | interror(L, arg); |
| 486 | } |
| 487 | return d; |
| 488 | } |
| 489 | |
| 490 | |
| 491 | LUALIB_API lua_Integer luaL_optinteger (lua_State *L, int arg, |
nothing calls this directly
no test coverage detected