| LUAL_OPTINT(3) | Library Functions Manual | LUAL_OPTINT(3) |
luaL_optint —
casts a number to an int, function indicator [-0, +0,
v]
#include
<lauxlib.h>
int
luaL_optint(lua_State
*L, int narg,
int d);
luaL_optint()
if the function argument narg is a number, returns
this number cast to an int. If this argument is absent or is
nil, returns d. Otherwise,
raises an error.
Roberto Ierusalimschy, Luiz Henrique de Figueiredo, and Waldemar Celes, Lua 5.1 Reference Manual.
The luaL_optint() manual page is based on
Lua Reference Manual 5.1 and was created by Sergey Bronnikov.
| July 26, 2022 | Debian |