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