Commit Diff


commit - d2bc66f232b36ca95c4a83b4d9287ac8b0a4e043
commit + ae13dd82234cfad86fec4fe959e501df5e5c6355
blob - /dev/null
blob + 74b1dddad712b135a01b6bdb1bf0e648c74c2603 (mode 644)
--- /dev/null
+++ man3/luaL_Reg.3
@@ -0,0 +1,38 @@
+.Dd $Mdocdate: July 26 2022 $
+.Dt LUAL_REG 3
+.Os
+.Sh NAME
+.Nm luaL_Reg
+.Nd type for arrays of functions to be registered by luaL_register
+.Sh SYNOPSIS
+.In lauxlib.h
+.Vt typedef struct luaL_Reg ;
+.Sh DESCRIPTION
+.Fn luaL_Reg
+type for arrays of functions to be registered by
+.Xr luaL_register 3 .
+.Vt luaL_Reg
+is defined as:
+.Bd -literal
+typedef struct luaL_Reg {
+        const char *name;
+        lua_CFunction func;
+} luaL_Reg;
+.Ed
+.Pp
+.Fa name
+is the function name and
+.Fa func
+is a pointer to the function.
+Any array of
+.Nm luaL_Reg
+must end with an sentinel entry in which both
+.Fa name
+and
+.Fa func
+are
+.Dv NULL .
+.Sh HISTORY
+The
+.Fn luaL_Reg
+manual page was written by Sergey Bronnikov.