Commit Diff


commit - 1cdd7f16e1274e7e684155f9a426d58a5c05f936
commit + d9adcdd5870f89a27c7cd76876a4e5c41004aee4
blob - /dev/null
blob + db07bde3d256f87c0004a2345e83dd24ada35cac (mode 644)
--- /dev/null
+++ man3/luaL_optlong.3
@@ -0,0 +1,22 @@
+.Dd $Mdocdate: July 26 2022 $
+.Dt LUAL_OPTLONG 3
+.Os
+.Sh NAME
+.Nm luaL_optlong
+.Nd casts a number to a long
+.Sh SYNOPSIS
+.In lauxlib.h
+.Ft long
+.Fn luaL_optlong "lua_State *L" "int narg" "long d"
+.Sh DESCRIPTION
+.Fn luaL_optlong
+if the function argument narg is a number, returns this number cast to a long.
+If this argument is absent or is
+.Dv nil ,
+returns
+.Fa d .
+Otherwise, raises an error.
+.Sh HISTORY
+The
+.Fn luaL_optlong
+manual page was written by Sergey Bronnikov.