commit b737797f9bbb77e742f2b41f2015db4e6f0ca3ae from: Sergey Bronnikov date: Wed Jul 27 06:59:11 2022 UTC man3: luaL_optint.3 commit - 11e7c1dd2189229b976f6fe1e0fe5d17f2103a18 commit + b737797f9bbb77e742f2b41f2015db4e6f0ca3ae blob - /dev/null blob + e3a303e86db5d1ca1eb47d29fdc56fe425087014 (mode 644) --- /dev/null +++ man3/luaL_optint.3 @@ -0,0 +1,24 @@ +.Dd $Mdocdate: July 26 2022 $ +.Dt LUAL_OPTINT 3 +.Os +.Sh NAME +.Nm luaL_optint +.Nd casts a number to an int +.Sh SYNOPSIS +.In lauxlib.h +.Ft int +.Fn luaL_optint "lua_State *L" "int narg" "int d" +.Sh DESCRIPTION +.Fn luaL_optint +if the function argument +.Fa narg +is a number, returns this number cast to an int. +If this argument is absent or is +.Dv nil , +returns +.Fa d . +Otherwise, raises an error. +.Sh HISTORY +The +.Fn luaL_optint +manual page was written by Sergey Bronnikov.