Skip to content

Commit

Permalink
man3: luaL_optint.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ligurio committed Jul 27, 2022
1 parent 11e7c1d commit b737797
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions man3/luaL_optint.3
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit b737797

Please sign in to comment.