Commit Diff


commit - 99b2d2978ab317e2d080e98c7059ddd1c3aae03f
commit + cee3adcc02139368cbd81909fad4febf2d836b5f
blob - /dev/null
blob + 3e5693ee3e83da58c32f8a75d5eaf8a232b8891f (mode 644)
--- /dev/null
+++ luaL_Buffer.3
@@ -0,0 +1,58 @@
+.Dd $Mdocdate: July 26 2022 $
+.Dt LUAL_BUFFER 3
+.Os
+.Sh NAME
+.Nm luaL_Buffer
+.Nd type for a string buffer
+.Sh SYNOPSIS
+.In lauxlib.h
+.Vt typedef struct luaL_Buffer luaL_Buffer ;
+.Sh DESCRIPTION
+.Fn luaL_Buffer
+type for a
+.Em string buffer .
+.Pp
+A string buffer allows C code to build Lua strings piecemeal.
+Its pattern of use is as follows:
+.Pp
+.Bl -bullet -compact
+.It
+First you declare a variable b of type
+.Nm luaL_Buffer .
+.It
+Then you initialize it with a call
+.Em luaL_buffinit(L, &b) .
+.It
+Then you add string pieces to the buffer calling any of the
+.Em luaL_add*
+functions.
+.It
+You finish by calling
+.Em luaL_pushresult(&b) .
+This call leaves the final string on the top of the stack.
+.El
+.Pp
+During its normal operation, a string buffer uses a variable number of stack
+slots.
+So, while using a buffer, you cannot assume that you know where the top
+of the stack is.
+You can use the stack between successive calls to buffer operations as long as
+that use is balanced; that is, when you call a buffer operation, the stack is
+at the same level it was immediately after the previous buffer operation.
+.Pq The only exception to this rule is Em luaL_addvalue .
+After calling
+.Xr luaL_pushresult 3
+the stack is back to its level when the buffer was initialized, plus the final
+string on its top.
+.Sh SEE ALSO
+.Xr luaL_pushresult 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_Buffer
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + e18ea316d4eb0a9edcd3a5c101115cd991b6341d (mode 644)
--- /dev/null
+++ luaL_Buffer.3.html
@@ -0,0 +1,71 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_BUFFER(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_BUFFER(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_BUFFER(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_Buffer</code> &#x2014;
+<div class="Nd" title="Nd">type for a string buffer</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Vt" title="Vt">typedef struct luaL_Buffer luaL_Buffer</var>;
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_Buffer</code>() type for a
+  <i class="Em" title="Em">string buffer</i>.
+<div class="Pp"></div>
+A string buffer allows C code to build Lua strings piecemeal. Its pattern of use
+  is as follows:
+<div class="Pp"></div>
+<ul class="Bl-bullet Bl-compact">
+  <li>First you declare a variable b of type
+      <code class="Nm" title="Nm">luaL_Buffer</code>.</li>
+  <li>Then you initialize it with a call
+      <i class="Em" title="Em">luaL_buffinit(L, &amp;b)</i>.</li>
+  <li>Then you add string pieces to the buffer calling any of the
+      <i class="Em" title="Em">luaL_add*</i> functions.</li>
+  <li>You finish by calling
+      <i class="Em" title="Em">luaL_pushresult(&amp;b)</i>. This call leaves the
+      final string on the top of the stack.</li>
+</ul>
+<div class="Pp"></div>
+During its normal operation, a string buffer uses a variable number of stack
+  slots. So, while using a buffer, you cannot assume that you know where the top
+  of the stack is. You can use the stack between successive calls to buffer
+  operations as long as that use is balanced; that is, when you call a buffer
+  operation, the stack is at the same level it was immediately after the
+  previous buffer operation. (The only exception to this rule is
+  <i class="Em" title="Em">luaL_addvalue</i>). After calling
+  <a class="Xr" title="Xr">luaL_pushresult(3)</a> the stack is back to its level
+  when the buffer was initialized, plus the final string on its top.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">luaL_pushresult(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_Buffer</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 26, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 897bbc03baf4317e98657d69045f318301cb841c (mode 644)
--- /dev/null
+++ luaL_Reg.3
@@ -0,0 +1,46 @@
+.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 SEE ALSO
+.Xr luaL_register 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_Reg
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 26fbb7429f9db1f8eaaec3ea58ccc6b28fe225c9 (mode 644)
--- /dev/null
+++ luaL_Reg.3.html
@@ -0,0 +1,64 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_REG(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_REG(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_REG(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_Reg</code> &#x2014;
+<div class="Nd" title="Nd">type for arrays of functions to be registered by
+  luaL_register</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Vt" title="Vt">typedef struct luaL_Reg</var>;
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_Reg</code>() type for arrays of functions to be
+  registered by <a class="Xr" title="Xr">luaL_register(3)</a>.
+  <var class="Vt" title="Vt">luaL_Reg</var> is defined as:
+<div class="Pp"></div>
+<div class="Bd">
+<pre class="Li">
+typedef struct luaL_Reg { 
+        const char *name; 
+        lua_CFunction func; 
+} luaL_Reg;
+</pre>
+</div>
+<div class="Pp"></div>
+<var class="Fa" title="Fa">name</var> is the function name and
+  <var class="Fa" title="Fa">func</var> is a pointer to the function. Any array
+  of <code class="Nm" title="Nm">luaL_Reg</code> must end with an sentinel entry
+  in which both <var class="Fa" title="Fa">name</var> and
+  <var class="Fa" title="Fa">func</var> are
+  <code class="Dv" title="Dv">NULL</code>.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">luaL_register(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_Reg</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 26, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 93849f6b1a297eeb67367767207afb57541ef81c (mode 644)
--- /dev/null
+++ luaL_addchar.3
@@ -0,0 +1,29 @@
+.Dd $Mdocdate: July 22 2022 $
+.Dt LUAL_ADDCHAR 3
+.Os
+.Sh NAME
+.Nm luaL_addchar
+.Nd adds the character to the buffer
+.Sh SYNOPSIS
+.In lauxlib.h
+.Ft void
+.Fn luaL_addchar "luaL_Buffer *B" "char c"
+.Sh DESCRIPTION
+.Fn luaL_addchar
+adds the character
+.Fa c
+to the buffer
+.Fa B
+.Pq see Xr luaL_Buffer 3 .
+.Sh SEE ALSO
+.Xr luaL_Buffer 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_addchar
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 92a70d50199aac305ad77f73334dc8883df815db (mode 644)
--- /dev/null
+++ luaL_addchar.3.html
@@ -0,0 +1,52 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_ADDCHAR(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_ADDCHAR(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_ADDCHAR(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_addchar</code> &#x2014;
+<div class="Nd" title="Nd">adds the character to the buffer</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">luaL_addchar</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">luaL_Buffer
+  *B</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">char
+  c</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_addchar</code>() adds the character
+  <var class="Fa" title="Fa">c</var> to the buffer
+  <var class="Fa" title="Fa">B</var> (see
+  <a class="Xr" title="Xr">luaL_Buffer(3)</a>).
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">luaL_Buffer(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_addchar</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 22, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + e597b34172f84781b9731650969afca6dae68a8c (mode 644)
--- /dev/null
+++ luaL_addlstring.3
@@ -0,0 +1,32 @@
+.Dd $Mdocdate: July 22 2022 $
+.Dt LUAL_ADDLSTRING 3
+.Os
+.Sh NAME
+.Nm luaL_addlstring
+.Nd adds the string to the buffer
+.Sh SYNOPSIS
+.In lauxlib.h
+.Ft void
+.Fn luaL_addlstring "luaL_Buffer *B" "const char *s" "size_t l"
+.Sh DESCRIPTION
+.Fn luaL_addlstring
+adds the string pointed to by
+.Fa s
+with length
+.Fa l
+to the buffer
+.Fa B
+.Pq see Xr luaL_Buffer 3 .
+The string may contain embedded zeros.
+.Sh SEE ALSO
+.Xr luaL_Buffer 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_addlstring
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + ace5efe9e26b8e29cd325df89eafe36d4c989704 (mode 644)
--- /dev/null
+++ luaL_addlstring.3.html
@@ -0,0 +1,55 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_ADDLSTRING(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_ADDLSTRING(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_ADDLSTRING(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_addlstring</code> &#x2014;
+<div class="Nd" title="Nd">adds the string to the buffer</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">luaL_addlstring</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">luaL_Buffer
+  *B</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const char
+  *s</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">size_t
+  l</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_addlstring</code>() adds the string pointed to
+  by <var class="Fa" title="Fa">s</var> with length
+  <var class="Fa" title="Fa">l</var> to the buffer
+  <var class="Fa" title="Fa">B</var> (see
+  <a class="Xr" title="Xr">luaL_Buffer(3)</a>). The string may contain embedded
+  zeros.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">luaL_Buffer(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_addlstring</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 22, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + e41a091b9088be7f6861cdb2ff34f1f1b344e1ee (mode 644)
--- /dev/null
+++ luaL_addsize.3
@@ -0,0 +1,32 @@
+.Dd $Mdocdate: July 22 2022 $
+.Dt LUAL_ADDSIZE 3
+.Os
+.Sh NAME
+.Nm luaL_addsize
+.Nd adds to the buffer a string
+.Sh SYNOPSIS
+.In lauxlib.h
+.Ft void
+.Fn luaL_addsize "luaL_Buffer *B" "size_t n"
+.Sh DESCRIPTION
+.Fn luaL_addsize
+adds to the buffer
+.Fa B
+.Pq see Xr luaL_Buffer 3
+a string of length
+.Fa n
+previously copied to the buffer area
+.Pq see Xr luaL_prepbuffer 3 .
+.Sh SEE ALSO
+.Xr luaL_Buffer 3 ,
+.Xr luaL_prepbuffer 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_addsize
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 260f54fe6e3c95c414ba2012e6fb66ac1fe86440 (mode 644)
--- /dev/null
+++ luaL_addsize.3.html
@@ -0,0 +1,54 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_ADDSIZE(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_ADDSIZE(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_ADDSIZE(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_addsize</code> &#x2014;
+<div class="Nd" title="Nd">adds to the buffer a string</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">luaL_addsize</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">luaL_Buffer
+  *B</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">size_t
+  n</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_addsize</code>() adds to the buffer
+  <var class="Fa" title="Fa">B</var> (see
+  <a class="Xr" title="Xr">luaL_Buffer(3)</a>) a string of length
+  <var class="Fa" title="Fa">n</var> previously copied to the buffer area (see
+  <a class="Xr" title="Xr">luaL_prepbuffer(3)</a>).
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">luaL_Buffer(3)</a>,
+  <a class="Xr" title="Xr">luaL_prepbuffer(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_addsize</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 22, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 999c71a4ff688239b5e2f2ffcfa8b9688f840e16 (mode 644)
--- /dev/null
+++ luaL_addstring.3
@@ -0,0 +1,30 @@
+.Dd $Mdocdate: July 22 2022 $
+.Dt LUAL_ADDSTRING 3
+.Os
+.Sh NAME
+.Nm luaL_addstring
+.Nd adds the zero-terminated string to the buffer
+.Sh SYNOPSIS
+.In lauxlib.h
+.Ft void
+.Fn luaL_addstring "luaL_Buffer *B" "const char *s"
+.Sh DESCRIPTION
+.Fn luaL_addstring
+adds the zero-terminated string pointed to by
+.Fa s
+to the buffer
+.Fa B
+.Pq see Xr luaL_Buffer 3 .
+The string may not contain embedded zeros.
+.Sh SEE ALSO
+.Xr luaL_Buffer 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_addstring
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 8c4316c77c14e3098dce868d8f6929b9854cf830 (mode 644)
--- /dev/null
+++ luaL_addstring.3.html
@@ -0,0 +1,53 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_ADDSTRING(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_ADDSTRING(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_ADDSTRING(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_addstring</code> &#x2014;
+<div class="Nd" title="Nd">adds the zero-terminated string to the buffer</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">luaL_addstring</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">luaL_Buffer
+  *B</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const char
+  *s</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_addstring</code>() adds the zero-terminated
+  string pointed to by <var class="Fa" title="Fa">s</var> to the buffer
+  <var class="Fa" title="Fa">B</var> (see
+  <a class="Xr" title="Xr">luaL_Buffer(3)</a>). The string may not contain
+  embedded zeros.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">luaL_Buffer(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_addstring</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 22, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 0b040d22da499660d0ebcf182e4c2ec6637f1488 (mode 644)
--- /dev/null
+++ luaL_addvalue.3
@@ -0,0 +1,31 @@
+.Dd $Mdocdate: July 22 2022 $
+.Dt LUAL_ADDVALUE 3
+.Os
+.Sh NAME
+.Nm luaL_addvalue
+.Nd adds the value at the top of the stack to the buffer
+.Sh SYNOPSIS
+.In lauxlib.h
+.Ft void
+.Fn luaL_addvalue "luaL_Buffer *B"
+.Sh DESCRIPTION
+.Fn luaL_addvalue
+adds the value at the top of the stack to the buffer
+.Fa B
+.Pq see Xr luaL_Buffer 3 .
+Pops the value.
+.Pp
+This is the only function on string buffers that can (and must) be called with
+an extra element on the stack, which is the value to be added to the buffer.
+.Sh SEE ALSO
+.Xr luaL_Buffer 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_addvalue
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + a1bfcc42592daab1184b2853cb1ce126dce37957 (mode 644)
--- /dev/null
+++ luaL_addvalue.3.html
@@ -0,0 +1,54 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_ADDVALUE(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_ADDVALUE(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_ADDVALUE(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_addvalue</code> &#x2014;
+<div class="Nd" title="Nd">adds the value at the top of the stack to the
+  buffer</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">luaL_addvalue</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">luaL_Buffer
+  *B</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_addvalue</code>() adds the value at the top of
+  the stack to the buffer <var class="Fa" title="Fa">B</var> (see
+  <a class="Xr" title="Xr">luaL_Buffer(3)</a>). Pops the value.
+<div class="Pp"></div>
+This is the only function on string buffers that can (and must) be called with
+  an extra element on the stack, which is the value to be added to the buffer.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">luaL_Buffer(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_addvalue</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 22, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 4237c99f0e4a9fe0cfd061d68e79ccb996c0c1b3 (mode 644)
--- /dev/null
+++ luaL_argcheck.3
@@ -0,0 +1,30 @@
+.Dd $Mdocdate: July 24 2022 $
+.Dt LUAL_ARGCHECK 3
+.Os
+.Sh NAME
+.Nm luaL_argcheck
+.Nd checks whether cond is true
+.Sh SYNOPSIS
+.In lauxlib.h
+.Ft void
+.Fn luaL_argcheck "lua_State *L" "int cond" "int narg" "const char *extramsg"
+.Sh DESCRIPTION
+.Fn luaL_argcheck
+checks whether cond is true.
+If not, raises an error with the following message, where func is retrieved
+from the call stack:
+.Pp
+.Bd -literal -offset indent -compact
+bad argument #<narg> to <func> (<extramsg>)
+.Ed
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_argcheck
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 2347a3aed45bbbff94839c844c2e9055f9dd5497 (mode 644)
--- /dev/null
+++ luaL_argcheck.3.html
@@ -0,0 +1,57 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_ARGCHECK(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_ARGCHECK(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_ARGCHECK(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_argcheck</code> &#x2014;
+<div class="Nd" title="Nd">checks whether cond is true</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">luaL_argcheck</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  cond</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  narg</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const char
+  *extramsg</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_argcheck</code>() checks whether cond is true.
+  If not, raises an error with the following message, where func is retrieved
+  from the call stack:
+<div class="Pp"></div>
+<div class="Bd Bd-indent">
+<pre class="Li">
+bad argument #&lt;narg&gt; to &lt;func&gt; (&lt;extramsg&gt;)
+</pre>
+</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_argcheck</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 24, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 6a6d8dfaf27a71437d4c6e19f12d9d4e70bce3ce (mode 644)
--- /dev/null
+++ luaL_argerror.3
@@ -0,0 +1,33 @@
+.Dd $Mdocdate: July 24 2022 $
+.Dt LUAL_ARGERROR 3
+.Os
+.Sh NAME
+.Nm luaL_argerror
+.Nd raises an error with the message
+.Sh SYNOPSIS
+.In lauxlib.h
+.Ft int
+.Fn luaL_argerror "lua_State *L" "int narg" "const char *extramsg"
+.Sh DESCRIPTION
+.Fn luaL_argerror
+raises an error with the following message, where func is retrieved from the
+call stack:
+.Pp
+.Bd -literal -offset indent -compact
+bad argument #<narg> to <func> (<extramsg>)
+.Ed
+.Pp
+This function never returns, but it is an idiom to use it in C functions as
+return
+.Em luaL_argerror(args) .
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_argerror
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 5744a51e78b864756b0c9f105b3614b818867b43 (mode 644)
--- /dev/null
+++ luaL_argerror.3.html
@@ -0,0 +1,58 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_ARGERROR(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_ARGERROR(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_ARGERROR(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_argerror</code> &#x2014;
+<div class="Nd" title="Nd">raises an error with the message</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">luaL_argerror</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  narg</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const char
+  *extramsg</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_argerror</code>() raises an error with the
+  following message, where func is retrieved from the call stack:
+<div class="Pp"></div>
+<div class="Bd Bd-indent">
+<pre class="Li">
+bad argument #&lt;narg&gt; to &lt;func&gt; (&lt;extramsg&gt;)
+</pre>
+</div>
+<div class="Pp"></div>
+This function never returns, but it is an idiom to use it in C functions as
+  return <i class="Em" title="Em">luaL_argerror(args)</i>.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_argerror</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 24, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + edbd16164471105d89735185ce4e36b2c84a223c (mode 644)
--- /dev/null
+++ luaL_buffinit.3
@@ -0,0 +1,29 @@
+.Dd $Mdocdate: July 22 2022 $
+.Dt LUAL_BUFFINIT 3
+.Os
+.Sh NAME
+.Nm luaL_buffinit
+.Nd initializes a buffer
+.Sh SYNOPSIS
+.In lauxlib.h
+.Ft void
+.Fn luaL_buffinit "lua_State *L" "luaL_Buffer *B"
+.Sh DESCRIPTION
+.Fn luaL_buffinit
+initializes a buffer
+.Fa B .
+This function does not allocate any space; the buffer must be declared as a
+variable
+.Pq see Xr luaL_Buffer 3 .
+.Sh SEE ALSO
+.Xr luaL_Buffer 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_buffinit
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 5aaf75494a9fd174d5c4ba3897673a17cc97adb9 (mode 644)
--- /dev/null
+++ luaL_buffinit.3.html
@@ -0,0 +1,52 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_BUFFINIT(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_BUFFINIT(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_BUFFINIT(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_buffinit</code> &#x2014;
+<div class="Nd" title="Nd">initializes a buffer</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">luaL_buffinit</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">luaL_Buffer
+  *B</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_buffinit</code>() initializes a buffer
+  <var class="Fa" title="Fa">B</var>. This function does not allocate any space;
+  the buffer must be declared as a variable (see
+  <a class="Xr" title="Xr">luaL_Buffer(3)</a>).
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">luaL_Buffer(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_buffinit</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 22, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 6f661e2c62cb88dab44e0e451263c1ec031048f6 (mode 644)
--- /dev/null
+++ luaL_callmeta.3
@@ -0,0 +1,32 @@
+.Dd $Mdocdate: July 26 2022 $
+.Dt LUAL_CALLMETA 3
+.Os
+.Sh NAME
+.Nm luaL_callmeta
+.Nd calls a metamethod
+.Sh SYNOPSIS
+.In lauxlib.h
+.Ft int
+.Fn luaL_callmeta "lua_State *L" "int obj" "const char *e"
+.Sh DESCRIPTION
+.Fn luaL_callmeta
+calls a metamethod.
+.Sh RETURN VALUES
+If the object at index obj has a metatable and this metatable has a field
+.Fa e ,
+this function calls this field and passes the object as its only argument.
+In this case this function returns 1 and pushes onto the stack the value
+returned by the call.
+If there is no metatable or no metamethod, this function returns 0 (without
+pushing any value on the stack).
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_callmeta
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + ce565d4347ea287e665b0852285b9ada3809caa9 (mode 644)
--- /dev/null
+++ luaL_callmeta.3.html
@@ -0,0 +1,56 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_CALLMETA(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_CALLMETA(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_CALLMETA(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_callmeta</code> &#x2014;
+<div class="Nd" title="Nd">calls a metamethod</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">luaL_callmeta</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  obj</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const char
+  *e</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_callmeta</code>() calls a metamethod.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+If the object at index obj has a metatable and this metatable has a field
+  <var class="Fa" title="Fa">e</var>, this function calls this field and passes
+  the object as its only argument. In this case this function returns 1 and
+  pushes onto the stack the value returned by the call. If there is no metatable
+  or no metamethod, this function returns 0 (without pushing any value on the
+  stack).
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_callmeta</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 26, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 8dffc35c8ded7799950a875178745fe13fe301c3 (mode 644)
--- /dev/null
+++ luaL_checkany.3
@@ -0,0 +1,28 @@
+.Dd $Mdocdate: July 24 2022 $
+.Dt LUAL_CHECKANY 3
+.Os
+.Sh NAME
+.Nm luaL_checkany
+.Nd checks whether the function has an argument of any type
+.Sh SYNOPSIS
+.In lauxlib.h
+.Ft void
+.Fn luaL_checkany "lua_State *L" "int narg"
+.Sh DESCRIPTION
+.Fn luaL_checkany
+checks whether the function has an argument of any type
+.Pq including Em nil
+at
+position
+.Fa narg .
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_checkany
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + ec2f9306b7bd1e61d66dbcb0e87034c60a72af7c (mode 644)
--- /dev/null
+++ luaL_checkany.3.html
@@ -0,0 +1,50 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_CHECKANY(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_CHECKANY(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_CHECKANY(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_checkany</code> &#x2014;
+<div class="Nd" title="Nd">checks whether the function has an argument of any
+  type</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">luaL_checkany</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  narg</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_checkany</code>() checks whether the function
+  has an argument of any type (including <i class="Em" title="Em">nil</i>) at
+  position <var class="Fa" title="Fa">narg</var>.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_checkany</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 24, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 6a4b9afed8048024cda5dabb44c3dd8973f2be75 (mode 644)
--- /dev/null
+++ luaL_checkint.3
@@ -0,0 +1,27 @@
+.Dd $Mdocdate: July 24 2022 $
+.Dt LUAL_CHECKINT 3
+.Os
+.Sh NAME
+.Nm luaL_checkint
+.Nd checks whether the function argument is a number
+.Sh SYNOPSIS
+.In lauxlib.h
+.Ft int
+.Fn luaL_checkint "lua_State *L" "int narg"
+.Sh DESCRIPTION
+.Fn luaL_checkint
+checks whether the function argument
+.Fa narg
+is a number and returns this number cast to an
+.Em int         .
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_checkint
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 126e64b2d60c392053aaf62d933cf1f3208044b6 (mode 644)
--- /dev/null
+++ luaL_checkint.3.html
@@ -0,0 +1,50 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_CHECKINT(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_CHECKINT(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_CHECKINT(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_checkint</code> &#x2014;
+<div class="Nd" title="Nd">checks whether the function argument is a
+  number</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">luaL_checkint</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  narg</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_checkint</code>() checks whether the function
+  argument <var class="Fa" title="Fa">narg</var> is a number and returns this
+  number cast to an <i class="Em" title="Em">int</i>.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_checkint</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 24, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 21ad45eaf7affaf7cc0806a54b0bcc5cd624fe8d (mode 644)
--- /dev/null
+++ luaL_checkinteger.3
@@ -0,0 +1,29 @@
+.Dd $Mdocdate: July 24 2022 $
+.Dt LUAL_CHECKINTEGER 3
+.Os
+.Sh NAME
+.Nm luaL_checkinteger
+.Nd checks whether the function argument is a number
+.Sh SYNOPSIS
+.In lauxlib.h
+.Ft lua_Integer
+.Fn luaL_checkinteger "lua_State *L" "int narg"
+.Sh DESCRIPTION
+.Fn luaL_checkinteger
+checks whether the function argument
+.Fa narg
+is a number and returns this number
+cast to a
+.Xr lua_Integer 3 .
+.Sh SEE ALSO
+.Xr lua_Integer 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_checkinteger
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + f8850e9b7a8210ad849f1e36f1abbfaf87748e6b (mode 644)
--- /dev/null
+++ luaL_checkinteger.3.html
@@ -0,0 +1,52 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_CHECKINTEGER(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_CHECKINTEGER(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_CHECKINTEGER(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_checkinteger</code> &#x2014;
+<div class="Nd" title="Nd">checks whether the function argument is a
+  number</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">lua_Integer</var>
+<br/>
+<code class="Fn" title="Fn">luaL_checkinteger</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  narg</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_checkinteger</code>() checks whether the
+  function argument <var class="Fa" title="Fa">narg</var> is a number and
+  returns this number cast to a <a class="Xr" title="Xr">lua_Integer(3)</a>.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">lua_Integer(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_checkinteger</code>() manual page was
+  written by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 24, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 0b4cd7fdb194052e0bc4968fc8677964863c5ae3 (mode 644)
--- /dev/null
+++ luaL_checklong.3
@@ -0,0 +1,26 @@
+.Dd $Mdocdate: July 24 2022 $
+.Dt LUAL_CHECKLONG 3
+.Os
+.Sh NAME
+.Nm luaL_checklong
+.Nd checks whether the function argument is a number
+.Sh SYNOPSIS
+.In lauxlib.h
+.Ft long
+.Fn luaL_checklong "lua_State *L" "int narg"
+.Sh DESCRIPTION
+.Fn luaL_checklong
+checks whether the function argument
+.Fa narg
+is a number and returns this number cast to a long.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_checklong
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + b7915b76057716e64a261bb95f141f56a0f98da2 (mode 644)
--- /dev/null
+++ luaL_checklong.3.html
@@ -0,0 +1,50 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_CHECKLONG(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_CHECKLONG(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_CHECKLONG(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_checklong</code> &#x2014;
+<div class="Nd" title="Nd">checks whether the function argument is a
+  number</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">long</var>
+<br/>
+<code class="Fn" title="Fn">luaL_checklong</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  narg</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_checklong</code>() checks whether the function
+  argument <var class="Fa" title="Fa">narg</var> is a number and returns this
+  number cast to a long.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_checklong</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 24, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 5040092fc3021cb4385b83d151d92fa712590607 (mode 644)
--- /dev/null
+++ luaL_checklstring.3
@@ -0,0 +1,36 @@
+.Dd $Mdocdate: July 24 2022 $
+.Dt LUAL_CHECKLSTRING 3
+.Os
+.Sh NAME
+.Nm luaL_checklstring
+.Nd checks whether the function argument is a string
+.Sh SYNOPSIS
+.In lauxlib.h
+.Ft const char *
+.Fn luaL_checklstring "lua_State *L" "int narg" "size_t *l"
+.Sh DESCRIPTION
+.Fn luaL_checklstring
+checks whether the function argument
+.Fa narg
+is a string and returns this string;
+if l is not
+.Dv NULL
+fills
+.Fa *l
+with the string's length.
+.Pp
+This function uses
+.Xr lua_tolstring 3
+to get its result, so all conversions and caveats of that function apply here.
+.Sh SEE ALSO
+.Xr lua_tolstring 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_checklstring
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 5d8fd8dde10ffc29222cfb283f189ab01b7ca6a4 (mode 644)
--- /dev/null
+++ luaL_checklstring.3.html
@@ -0,0 +1,57 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_CHECKLSTRING(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_CHECKLSTRING(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_CHECKLSTRING(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_checklstring</code> &#x2014;
+<div class="Nd" title="Nd">checks whether the function argument is a
+  string</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">const char *</var>
+<br/>
+<code class="Fn" title="Fn">luaL_checklstring</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  narg</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">size_t
+  *l</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_checklstring</code>() checks whether the
+  function argument <var class="Fa" title="Fa">narg</var> is a string and
+  returns this string; if l is not <code class="Dv" title="Dv">NULL</code> fills
+  <var class="Fa" title="Fa">*l</var> with the string's length.
+<div class="Pp"></div>
+This function uses <a class="Xr" title="Xr">lua_tolstring(3)</a> to get its
+  result, so all conversions and caveats of that function apply here.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">lua_tolstring(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_checklstring</code>() manual page was
+  written by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 24, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + c25a3bb23182870b17535b0ba9106cc7233ac572 (mode 644)
--- /dev/null
+++ luaL_checknumber.3
@@ -0,0 +1,27 @@
+.Dd $Mdocdate: July 24 2022 $
+.Dt LUAL_CHECKNUMBER 3
+.Os
+.Sh NAME
+.Nm luaL_checknumber
+.Nd checks whether the function argument narg is a number and returns this
+number
+.Sh SYNOPSIS
+.In lauxlib.h
+.Ft lua_Number
+.Fn luaL_checknumber "lua_State *L" "int narg"
+.Sh DESCRIPTION
+.Fn luaL_checknumber
+checks whether the function argument
+.Fa narg
+is a number and returns this number.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_checknumber
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 913193e0b038319cdc49cb3cc7d01b47ebec2d66 (mode 644)
--- /dev/null
+++ luaL_checknumber.3.html
@@ -0,0 +1,50 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_CHECKNUMBER(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_CHECKNUMBER(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_CHECKNUMBER(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_checknumber</code> &#x2014;
+<div class="Nd" title="Nd">checks whether the function argument narg is a number
+  and returns this number</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">lua_Number</var>
+<br/>
+<code class="Fn" title="Fn">luaL_checknumber</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  narg</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_checknumber</code>() checks whether the
+  function argument <var class="Fa" title="Fa">narg</var> is a number and
+  returns this number.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_checknumber</code>() manual page was
+  written by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 24, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 41c147945a6e698bd52a4a39b0d07854b3248217 (mode 644)
--- /dev/null
+++ luaL_checkoption.3
@@ -0,0 +1,45 @@
+.Dd $Mdocdate: July 24 2022 $
+.Dt LUAL_CHECKOPTION 3
+.Os
+.Sh NAME
+.Nm luaL_checkoption
+.Nd checks whether the function argument is a string
+.Sh SYNOPSIS
+.In lauxlib.h
+.Ft int
+.Fn luaL_checkoption "lua_State *L" "int narg" "const char *def" "const char *const lst[]"
+.Sh DESCRIPTION
+.Fn luaL_checkoption
+checks whether the function argument
+.Fa narg
+is a string and searches for this string in the array
+.Fa lst
+(which must be
+.Dv NULL
+-terminated).
+Returns the index in the array where the string was found.
+Raises an error if the argument is not a string or if the string cannot be
+found.
+.Pp
+If
+.Fa def
+is not
+.Dv NULL ,
+the function uses def as a default value when there is no argument
+.Fa narg
+or if this argument is
+.Dv nil .
+.Pp
+This is a useful function for mapping strings to C enums. (The usual convention
+in Lua libraries is to use strings instead of numbers to select options.)
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_checkoption
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 59c5d21e86b659e76fb3162c10e4b72207733ce2 (mode 644)
--- /dev/null
+++ luaL_checkoption.3.html
@@ -0,0 +1,63 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_CHECKOPTION(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_CHECKOPTION(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_CHECKOPTION(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_checkoption</code> &#x2014;
+<div class="Nd" title="Nd">checks whether the function argument is a
+  string</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">luaL_checkoption</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  narg</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const char
+  *def</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const char
+  *const lst[]</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_checkoption</code>() checks whether the
+  function argument <var class="Fa" title="Fa">narg</var> is a string and
+  searches for this string in the array <var class="Fa" title="Fa">lst</var>
+  (which must be <code class="Dv" title="Dv">NULL</code> -terminated). Returns
+  the index in the array where the string was found. Raises an error if the
+  argument is not a string or if the string cannot be found.
+<div class="Pp"></div>
+If <var class="Fa" title="Fa">def</var> is not
+  <code class="Dv" title="Dv">NULL</code>, the function uses def as a default
+  value when there is no argument <var class="Fa" title="Fa">narg</var> or if
+  this argument is <code class="Dv" title="Dv">nil</code>.
+<div class="Pp"></div>
+This is a useful function for mapping strings to C enums. (The usual convention
+  in Lua libraries is to use strings instead of numbers to select options.)
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_checkoption</code>() manual page was
+  written by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 24, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 14a16717d0886d773176b590d7cd7e52e2ccba3e (mode 644)
--- /dev/null
+++ luaL_checkstack.3
@@ -0,0 +1,28 @@
+.Dd $Mdocdate: July 24 2022 $
+.Dt LUAL_CHECKSTACK 3
+.Os
+.Sh NAME
+.Nm luaL_checkstack
+.Nd grows the stack size to specified size of elements
+.Sh SYNOPSIS
+.In lauxlib.h
+.Ft void
+.Fn luaL_checkstack "lua_State *L" "int sz" "const char *msg"
+.Sh DESCRIPTION
+.Fn luaL_checkstack
+grows the stack size to
+.Em top + sz
+elements, raising an error if the stack cannot grow to that size.
+.Fa msg
+is an additional text to go into the error message.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_checkstack
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 3b5abc4b967b3e98d0c82e5a6a3c5b5444bacda5 (mode 644)
--- /dev/null
+++ luaL_checkstack.3.html
@@ -0,0 +1,52 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_CHECKSTACK(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_CHECKSTACK(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_CHECKSTACK(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_checkstack</code> &#x2014;
+<div class="Nd" title="Nd">grows the stack size to specified size of
+  elements</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">luaL_checkstack</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  sz</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const char
+  *msg</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_checkstack</code>() grows the stack size to
+  <i class="Em" title="Em">top + sz</i> elements, raising an error if the stack
+  cannot grow to that size. <var class="Fa" title="Fa">msg</var> is an
+  additional text to go into the error message.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_checkstack</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 24, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + c413017352dab90d3c127838eabee19e02792f4d (mode 644)
--- /dev/null
+++ luaL_checkstring.3
@@ -0,0 +1,31 @@
+.Dd $Mdocdate: July 24 2022 $
+.Dt LUAL_CHECKSTRING 3
+.Os
+.Sh NAME
+.Nm luaL_checkstring
+.Nd checks whether the function argument is a string and returns this string
+.Sh SYNOPSIS
+.In lauxlib.h
+.Ft const char *
+.Fn luaL_checkstring "lua_State *L" "int narg"
+.Sh DESCRIPTION
+.Fn luaL_checkstring
+checks whether the function argument
+.Fa narg
+is a string and returns this string.
+.Pp
+This function uses
+.Xr lua_tolstring 3
+to get its result, so all conversions and caveats of that function apply here.
+.Sh SEE ALSO
+.Xr lua_tolstring 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_checkstring
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 62e61f634dc814e053563e66663a3593a9211fdc (mode 644)
--- /dev/null
+++ luaL_checkstring.3.html
@@ -0,0 +1,55 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_CHECKSTRING(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_CHECKSTRING(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_CHECKSTRING(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_checkstring</code> &#x2014;
+<div class="Nd" title="Nd">checks whether the function argument is a string and
+  returns this string</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">const char *</var>
+<br/>
+<code class="Fn" title="Fn">luaL_checkstring</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  narg</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_checkstring</code>() checks whether the
+  function argument <var class="Fa" title="Fa">narg</var> is a string and
+  returns this string.
+<div class="Pp"></div>
+This function uses <a class="Xr" title="Xr">lua_tolstring(3)</a> to get its
+  result, so all conversions and caveats of that function apply here.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">lua_tolstring(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_checkstring</code>() manual page was
+  written by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 24, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 9c67b486ecdf37842e7523227ed87fe965e50224 (mode 644)
--- /dev/null
+++ luaL_checktype.3
@@ -0,0 +1,32 @@
+.Dd $Mdocdate: July 24 2022 $
+.Dt LUAL_CHECKTYPE 3
+.Os
+.Sh NAME
+.Nm luaL_checktype
+.Nd checks whether the function argument has a certain type
+.Sh SYNOPSIS
+.In lauxlib.h
+.Ft void
+.Fn luaL_checktype "lua_State *L" "int narg" "int t"
+.Sh DESCRIPTION
+.Fn luaL_checktype
+checks whether the function argument
+.Fa narg
+has type
+.Fa t .
+See
+.Xr lua_type 3
+for the encoding of types for
+.Fa t .
+.Sh SEE ALSO
+.Xr lua_type 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_checktype
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 806d134215a25b213a70e1ff1485f5cec0f4e33d (mode 644)
--- /dev/null
+++ luaL_checktype.3.html
@@ -0,0 +1,55 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_CHECKTYPE(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_CHECKTYPE(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_CHECKTYPE(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_checktype</code> &#x2014;
+<div class="Nd" title="Nd">checks whether the function argument has a certain
+  type</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">luaL_checktype</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  narg</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  t</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_checktype</code>() checks whether the function
+  argument <var class="Fa" title="Fa">narg</var> has type
+  <var class="Fa" title="Fa">t</var>. See
+  <a class="Xr" title="Xr">lua_type(3)</a> for the encoding of types for
+  <var class="Fa" title="Fa">t</var>.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">lua_type(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_checktype</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 24, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 057fc8cf7183dfdace357e99c981e4d1e294d023 (mode 644)
--- /dev/null
+++ luaL_checkudata.3
@@ -0,0 +1,29 @@
+.Dd $Mdocdate: July 24 2022 $
+.Dt LUAL_CHECKUDATA 3
+.Os
+.Sh NAME
+.Nm luaL_checkudata
+.Nd checks whether the function argument is a userdata of a certain type
+.Sh SYNOPSIS
+.In lauxlib.h
+.Ft void *
+.Fn luaL_checkudata "lua_State *L" "int narg" "const char *tname"
+.Sh DESCRIPTION
+.Fn luaL_checkudata
+checks whether the function argument
+.Fa narg
+is a userdata of the type
+.Fa tname
+.Pq see Xr luaL_newmetatable 3 .
+.Sh SEE ALSO
+.Xr luaL_newmetatable 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_checkudata
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + e8c17cafe1160b7dab8bde71c41fd9987544ad32 (mode 644)
--- /dev/null
+++ luaL_checkudata.3.html
@@ -0,0 +1,54 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_CHECKUDATA(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_CHECKUDATA(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_CHECKUDATA(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_checkudata</code> &#x2014;
+<div class="Nd" title="Nd">checks whether the function argument is a userdata of
+  a certain type</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void *</var>
+<br/>
+<code class="Fn" title="Fn">luaL_checkudata</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  narg</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const char
+  *tname</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_checkudata</code>() checks whether the function
+  argument <var class="Fa" title="Fa">narg</var> is a userdata of the type
+  <var class="Fa" title="Fa">tname</var> (see
+  <a class="Xr" title="Xr">luaL_newmetatable(3)</a>).
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">luaL_newmetatable(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_checkudata</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 24, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 4f3d888dcf60d40b31dd63c33d1fc7b45f270046 (mode 644)
--- /dev/null
+++ luaL_dofile.3
@@ -0,0 +1,31 @@
+.Dd $Mdocdate: July 24 2022 $
+.Dt LUAL_DOFILE 3
+.Os
+.Sh NAME
+.Nm luaL_dofile
+.Nd loads and runs the given file
+.Sh SYNOPSIS
+.In lauxlib.h
+.Ft int
+.Fn luaL_dofile "lua_State *L" "const char *filename"
+.Sh DESCRIPTION
+.Fn luaL_dofile
+loads and runs the given file.
+It is defined as the following macro:
+.Pp
+.Bd -literal -offset indent -compact
+(luaL_loadfile(L, filename) || lua_pcall(L, 0, LUA_MULTRET, 0))
+.Ed
+.Sh RETURN VALUES
+It returns 0 if there are no errors or 1 in case of errors.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_dofile
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 41922caa407092b0bfa605b2d30cef514038cf95 (mode 644)
--- /dev/null
+++ luaL_dofile.3.html
@@ -0,0 +1,57 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_DOFILE(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_DOFILE(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_DOFILE(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_dofile</code> &#x2014;
+<div class="Nd" title="Nd">loads and runs the given file</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">luaL_dofile</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const char
+  *filename</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_dofile</code>() loads and runs the given file.
+  It is defined as the following macro:
+<div class="Pp"></div>
+<div class="Bd Bd-indent">
+<pre class="Li">
+(luaL_loadfile(L, filename) || lua_pcall(L, 0, LUA_MULTRET, 0))
+</pre>
+</div>
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+It returns 0 if there are no errors or 1 in case of errors.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_dofile</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 24, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + a42e449490730d4cf134d80b84522c32939aee6f (mode 644)
--- /dev/null
+++ luaL_dostring.3
@@ -0,0 +1,31 @@
+.Dd $Mdocdate: July 24 2022 $
+.Dt LUAL_DOSTRING 3
+.Os
+.Sh NAME
+.Nm luaL_dostring
+.Nd loads and runs the given string
+.Sh SYNOPSIS
+.In lauxlib.h
+.Ft int
+.Fn luaL_dostring "lua_State *L" "const char *str"
+.Sh DESCRIPTION
+.Fn luaL_dostring
+loads and runs the given string.
+It is defined as the following macro:
+.Pp
+.Bd -literal -offset indent -compact
+(luaL_loadstring(L, str) || lua_pcall(L, 0, LUA_MULTRET, 0))
+.Ed
+.Sh RETURN VALUES
+It returns 0 if there are no errors or 1 in case of errors.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_dostring
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + a35832a3d4249cfa9bebf3b3104d861f0c956b21 (mode 644)
--- /dev/null
+++ luaL_dostring.3.html
@@ -0,0 +1,57 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_DOSTRING(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_DOSTRING(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_DOSTRING(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_dostring</code> &#x2014;
+<div class="Nd" title="Nd">loads and runs the given string</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">luaL_dostring</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const char
+  *str</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_dostring</code>() loads and runs the given
+  string. It is defined as the following macro:
+<div class="Pp"></div>
+<div class="Bd Bd-indent">
+<pre class="Li">
+(luaL_loadstring(L, str) || lua_pcall(L, 0, LUA_MULTRET, 0))
+</pre>
+</div>
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+It returns 0 if there are no errors or 1 in case of errors.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_dostring</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 24, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + a8d6235b348bc25c6d45df76f00c3b66133fcb79 (mode 644)
--- /dev/null
+++ luaL_error.3
@@ -0,0 +1,35 @@
+.Dd $Mdocdate: July 24 2022 $
+.Dt LUAL_ERROR 3
+.Os
+.Sh NAME
+.Nm luaL_error
+.Nd raises an error
+.Sh SYNOPSIS
+.In lauxlib.h
+.Ft int
+.Fn luaL_error "lua_State *L" "const char *fmt" "..."
+.Sh DESCRIPTION
+.Fn luaL_error
+raises an error.
+The error message format is given by
+.Fa fmt
+plus any extra arguments, following the same rules of
+.Xr lua_pushfstring 3 .
+It also adds at the beginning of the message the file name and the line number
+where the error occurred, if this information is available.
+.Pp
+This function never returns, but it is an idiom to use it in C functions as
+return
+.Em luaL_error(args) .
+.Sh SEE ALSO
+.Xr lua_pushfstring 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_error
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 24f9d05072d26944db63f80aad10004465138f19 (mode 644)
--- /dev/null
+++ luaL_error.3.html
@@ -0,0 +1,58 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_ERROR(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_ERROR(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_ERROR(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_error</code> &#x2014;
+<div class="Nd" title="Nd">raises an error</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">luaL_error</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const char
+  *fmt</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">...</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_error</code>() raises an error. The error
+  message format is given by <var class="Fa" title="Fa">fmt</var> plus any extra
+  arguments, following the same rules of
+  <a class="Xr" title="Xr">lua_pushfstring(3)</a>. It also adds at the beginning
+  of the message the file name and the line number where the error occurred, if
+  this information is available.
+<div class="Pp"></div>
+This function never returns, but it is an idiom to use it in C functions as
+  return <i class="Em" title="Em">luaL_error(args)</i>.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">lua_pushfstring(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_error</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 24, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + c53f356115705ea4e6c90c91ce52eb71223806cb (mode 644)
--- /dev/null
+++ luaL_getmetafield.3
@@ -0,0 +1,30 @@
+.Dd $Mdocdate: July 24 2022 $
+.Dt LUAL_GETMETAFIELD 3
+.Os
+.Sh NAME
+.Nm luaL_getmetafield
+.Nd pushes onto the stack the field from the metatable of the object at the
+specified index
+.Sh SYNOPSIS
+.In lauxlib.h
+.Ft int
+.Fn luaL_getmetafield "lua_State *L" "int obj" "const char *e"
+.Sh DESCRIPTION
+.Fn luaL_getmetafield
+pushes onto the stack the field
+.Fa e
+from the metatable of the object at index
+.Fa obj .
+If the object does not have a metatable, or if the metatable does not have
+this field, returns 0 and pushes nothing.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_getmetafield
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + b6e903aedf8dd545d4053aff07319850c940ecc3 (mode 644)
--- /dev/null
+++ luaL_getmetafield.3.html
@@ -0,0 +1,53 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_GETMETAFIELD(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_GETMETAFIELD(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_GETMETAFIELD(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_getmetafield</code> &#x2014;
+<div class="Nd" title="Nd">pushes onto the stack the field from the metatable of
+  the object at the specified index</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">luaL_getmetafield</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  obj</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const char
+  *e</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_getmetafield</code>() pushes onto the stack the
+  field <var class="Fa" title="Fa">e</var> from the metatable of the object at
+  index <var class="Fa" title="Fa">obj</var>. If the object does not have a
+  metatable, or if the metatable does not have this field, returns 0 and pushes
+  nothing.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_getmetafield</code>() manual page was
+  written by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 24, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 103a59f5e876f010ad13aead7f6f9790ec8a474c (mode 644)
--- /dev/null
+++ luaL_getmetatable.3
@@ -0,0 +1,28 @@
+.Dd $Mdocdate: July 24 2022 $
+.Dt LUAL_GETMETATABLE 3
+.Os
+.Sh NAME
+.Nm luaL_getmetatable
+.Nd pushes onto the stack the metatable associated with name in the registry
+.Sh SYNOPSIS
+.In lauxlib.h
+.Ft void
+.Fn luaL_getmetatable "lua_State *L" "const char *tname"
+.Sh DESCRIPTION
+.Fn luaL_getmetatable
+pushes onto the stack the metatable associated with name
+.Fa tname
+in the registry
+.Pq see Xr luaL_newmetatable 3 .
+.Sh SEE ALSO
+.Xr luaL_newmetatable 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_getmetatable
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + cadeda91e86f519991ddfabe32a4e9ae73f718de (mode 644)
--- /dev/null
+++ luaL_getmetatable.3.html
@@ -0,0 +1,52 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_GETMETATABLE(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_GETMETATABLE(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_GETMETATABLE(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_getmetatable</code> &#x2014;
+<div class="Nd" title="Nd">pushes onto the stack the metatable associated with
+  name in the registry</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">luaL_getmetatable</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const char
+  *tname</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_getmetatable</code>() pushes onto the stack the
+  metatable associated with name <var class="Fa" title="Fa">tname</var> in the
+  registry (see <a class="Xr" title="Xr">luaL_newmetatable(3)</a>).
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">luaL_newmetatable(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_getmetatable</code>() manual page was
+  written by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 24, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 32eca7f10c0dbc5503f285efd1b55029339b8794 (mode 644)
--- /dev/null
+++ luaL_gsub.3
@@ -0,0 +1,31 @@
+.Dd $Mdocdate: July 24 2022 $
+.Dt LUAL_GSUB 3
+.Os
+.Sh NAME
+.Nm luaL_gsub
+.Nd creates a copy of string A by replacing any occurrence of the string B with
+the string C
+.Sh SYNOPSIS
+.In lauxlib.h
+.Ft const char *
+.Fn luaL_gsub "lua_State *L" "const char *s" "const char *p" "const char *r"
+.Sh DESCRIPTION
+.Fn luaL_gsub
+creates a copy of string
+.Fa s
+by replacing any occurrence of the string
+.Fa p
+with the string
+.Fa r .
+Pushes the resulting string on the stack and returns it.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_gsub
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + da9494910c934deeb5b40b78c8ce9143f4227db8 (mode 644)
--- /dev/null
+++ luaL_gsub.3.html
@@ -0,0 +1,54 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_GSUB(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_GSUB(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_GSUB(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_gsub</code> &#x2014;
+<div class="Nd" title="Nd">creates a copy of string A by replacing any
+  occurrence of the string B with the string C</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">const char *</var>
+<br/>
+<code class="Fn" title="Fn">luaL_gsub</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const char
+  *s</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const char
+  *p</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const char
+  *r</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_gsub</code>() creates a copy of string
+  <var class="Fa" title="Fa">s</var> by replacing any occurrence of the string
+  <var class="Fa" title="Fa">p</var> with the string
+  <var class="Fa" title="Fa">r</var>. Pushes the resulting string on the stack
+  and returns it.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_gsub</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 24, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + b7a0c452619f8f6586c76ccf5fc603c1feec6556 (mode 644)
--- /dev/null
+++ luaL_loadbuffer.3
@@ -0,0 +1,37 @@
+.Dd $Mdocdate: July 24 2022 $
+.Dt LUAL_LOADBUFFER 3
+.Os
+.Sh NAME
+.Nm luaL_loadbuffer
+.Nd loads a buffer as a Lua chunk
+.Sh SYNOPSIS
+.In lauxlib.h
+.Ft int
+.Fn luaL_loadbuffer "lua_State *L" "const char *buff" "size_t sz" "const char *name"
+.Sh DESCRIPTION
+.Fn luaL_loadbuffer
+loads a buffer as a Lua chunk.
+This function uses
+.Xr lua_load 3
+to load the chunk in the buffer pointed to by
+.Fa buff
+with size
+.Fa sz .
+.Pp
+This function returns the same results as
+.Xr lua_load 3 .
+.Fa name
+is the chunk name,
+used for debug information and error messages.
+.Sh SEE ALSO
+.Xr lua_load 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_loadbuffer
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 63b9f0abf5bdb015fd8872027fb009ef038807b3 (mode 644)
--- /dev/null
+++ luaL_loadbuffer.3.html
@@ -0,0 +1,59 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_LOADBUFFER(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_LOADBUFFER(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_LOADBUFFER(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_loadbuffer</code> &#x2014;
+<div class="Nd" title="Nd">loads a buffer as a Lua chunk</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">luaL_loadbuffer</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const char
+  *buff</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">size_t
+  sz</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const char
+  *name</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_loadbuffer</code>() loads a buffer as a Lua
+  chunk. This function uses <a class="Xr" title="Xr">lua_load(3)</a> to load the
+  chunk in the buffer pointed to by <var class="Fa" title="Fa">buff</var> with
+  size <var class="Fa" title="Fa">sz</var>.
+<div class="Pp"></div>
+This function returns the same results as
+  <a class="Xr" title="Xr">lua_load(3)</a>.
+  <var class="Fa" title="Fa">name</var> is the chunk name, used for debug
+  information and error messages.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">lua_load(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_loadbuffer</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 24, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 8255ed36136fba727ed9ba81caf358f7a973cb5e (mode 644)
--- /dev/null
+++ luaL_loadfile.3
@@ -0,0 +1,44 @@
+.Dd $Mdocdate: July 24 2022 $
+.Dt LUAL_LOADFILE 3
+.Os
+.Sh NAME
+.Nm luaL_loadfile
+.Nd loads a file as a Lua chunk
+.Sh SYNOPSIS
+.In lauxlib.h
+.Ft int
+.Fn luaL_loadfile "lua_State *L" "const char *filename"
+.Sh DESCRIPTION
+.Fn luaL_loadfile
+loads a file as a Lua chunk.
+This function uses
+.Xr lua_load 3
+to load the chunk in the file named
+.Fa filename .
+If filename is
+.Dv NULL ,
+then it loads from the standard input.
+The first line in the file is ignored if it starts with a
+.Em # .
+.Pp
+As
+.Xr lua_load 3 ,
+this function only loads the chunk; it does not run it.
+.Sh RETURN VALUES
+This function returns the same results as
+.Xr lua_load 3 ,
+but it has an extra error code
+.Dv LUA_ERRFILE
+if it cannot open/read the file.
+.Sh SEE ALSO
+.Xr lua_load 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_loadfile
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 9bf05468dbfadece23e8f2445f118db69e87db43 (mode 644)
--- /dev/null
+++ luaL_loadfile.3.html
@@ -0,0 +1,63 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_LOADFILE(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_LOADFILE(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_LOADFILE(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_loadfile</code> &#x2014;
+<div class="Nd" title="Nd">loads a file as a Lua chunk</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">luaL_loadfile</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const char
+  *filename</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_loadfile</code>() loads a file as a Lua chunk.
+  This function uses <a class="Xr" title="Xr">lua_load(3)</a> to load the chunk
+  in the file named <var class="Fa" title="Fa">filename</var>. If filename is
+  <code class="Dv" title="Dv">NULL</code>, then it loads from the standard
+  input. The first line in the file is ignored if it starts with a
+  <i class="Em" title="Em">#</i>.
+<div class="Pp"></div>
+As <a class="Xr" title="Xr">lua_load(3)</a>, this function only loads the chunk;
+  it does not run it.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+This function returns the same results as
+  <a class="Xr" title="Xr">lua_load(3)</a>, but it has an extra error code
+  <code class="Dv" title="Dv">LUA_ERRFILE</code> if it cannot open/read the
+  file.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">lua_load(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_loadfile</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 24, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + ff451dc263329b5b5604ea25727256173bc2d4b8 (mode 644)
--- /dev/null
+++ luaL_loadstring.3
@@ -0,0 +1,36 @@
+.Dd $Mdocdate: July 24 2022 $
+.Dt LUAL_LOADSTRING 3
+.Os
+.Sh NAME
+.Nm luaL_loadstring
+.Nd loads a string as a Lua chunk
+.Sh SYNOPSIS
+.In lauxlib.h
+.Ft int
+.Fn luaL_loadstring "lua_State *L" "const char *s"
+.Sh DESCRIPTION
+.Fn luaL_loadstring
+loads a string as a Lua chunk.
+This function uses
+.Xr lua_load 3
+to load the chunk in the zero-terminated string
+.Fa s .
+.Pp
+This function returns the same results as
+.Xr lua_load 3 .
+.Pp
+Also as
+.Xr lua_load 3 ,
+this function only loads the chunk; it does not run it.
+.Sh SEE ALSO
+.Xr lua_load 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_loadstring
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + d52f06f17c37ce0635f06fe04f354a1f58c07e36 (mode 644)
--- /dev/null
+++ luaL_loadstring.3.html
@@ -0,0 +1,57 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_LOADSTRING(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_LOADSTRING(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_LOADSTRING(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_loadstring</code> &#x2014;
+<div class="Nd" title="Nd">loads a string as a Lua chunk</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">luaL_loadstring</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const char
+  *s</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_loadstring</code>() loads a string as a Lua
+  chunk. This function uses <a class="Xr" title="Xr">lua_load(3)</a> to load the
+  chunk in the zero-terminated string <var class="Fa" title="Fa">s</var>.
+<div class="Pp"></div>
+This function returns the same results as
+  <a class="Xr" title="Xr">lua_load(3)</a>.
+<div class="Pp"></div>
+Also as <a class="Xr" title="Xr">lua_load(3)</a>, this function only loads the
+  chunk; it does not run it.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">lua_load(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_loadstring</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 24, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 330549d7d024faae9a1e9640f6069ff8ae9029fa (mode 644)
--- /dev/null
+++ luaL_newmetatable.3
@@ -0,0 +1,33 @@
+.Dd $Mdocdate: July 26 2022 $
+.Dt LUAL_NEWMETATABLE 3
+.Os
+.Sh NAME
+.Nm luaL_newmetatable
+.Nd creates a new table to be used as a metatable for userdata
+.Sh SYNOPSIS
+.In lauxlib.h
+.Ft int
+.Fn luaL_newmetatable "lua_State *L" "const char *tname"
+.Sh DESCRIPTION
+.Fn luaL_newmetatable
+If the registry already has the key
+.Fa tname ,
+returns 0. Otherwise, creates a new table to be used as a metatable for
+userdata, adds it to the registry with key
+.Fa tname ,
+and returns 1.
+.Pp
+In both cases pushes onto the stack the final value associated with
+.Fa tname
+in the registry.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_newmetatable
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 37d36dbb19d7057530bf7cd222d8a68dbed8121f (mode 644)
--- /dev/null
+++ luaL_newmetatable.3.html
@@ -0,0 +1,54 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_NEWMETATABLE(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_NEWMETATABLE(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_NEWMETATABLE(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_newmetatable</code> &#x2014;
+<div class="Nd" title="Nd">creates a new table to be used as a metatable for
+  userdata</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">luaL_newmetatable</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const char
+  *tname</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_newmetatable</code>() If the registry already
+  has the key <var class="Fa" title="Fa">tname</var>, returns 0. Otherwise,
+  creates a new table to be used as a metatable for userdata, adds it to the
+  registry with key <var class="Fa" title="Fa">tname</var>, and returns 1.
+<div class="Pp"></div>
+In both cases pushes onto the stack the final value associated with
+  <var class="Fa" title="Fa">tname</var> in the registry.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_newmetatable</code>() manual page was
+  written by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 26, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 04a3b3c9937587cb228bef85d67176283795616c (mode 644)
--- /dev/null
+++ luaL_newstate.3
@@ -0,0 +1,38 @@
+.Dd $Mdocdate: July 26 2022 $
+.Dt LUAL_NEWSTATE 3
+.Os
+.Sh NAME
+.Nm luaL_newstate
+.Nd creates a new Lua state
+.Sh SYNOPSIS
+.In lauxlib.h
+.Ft lua_State *
+.Fn luaL_newstate "void"
+.Sh DESCRIPTION
+.Fn luaL_newstate
+creates a new Lua state.
+It calls
+.Xr lua_newstate 3
+with an allocator based on the standard C
+.Xr realloc 3
+function and then sets a panic function
+.Pq see Xr lua_atpanic 3
+that prints an error message to the standard error output in case of fatal
+errors.
+.Sh RETURN VALUES
+Returns the new state, or
+.Dv NULL
+if there is a memory allocation error.
+.Sh SEE ALSO
+.Xr lua_atpanic 3 ,
+.Xr lua_newstate 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_newstate
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + d021b123d47aa73b39cec690bb6a8b4fac138fc7 (mode 644)
--- /dev/null
+++ luaL_newstate.3.html
@@ -0,0 +1,56 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_NEWSTATE(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_NEWSTATE(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_NEWSTATE(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_newstate</code> &#x2014;
+<div class="Nd" title="Nd">creates a new Lua state</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">lua_State *</var>
+<br/>
+<code class="Fn" title="Fn">luaL_newstate</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">void</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_newstate</code>() creates a new Lua state. It
+  calls <a class="Xr" title="Xr">lua_newstate(3)</a> with an allocator based on
+  the standard C <a class="Xr" title="Xr">realloc(3)</a> function and then sets
+  a panic function (see <a class="Xr" title="Xr">lua_atpanic(3)</a>) that prints
+  an error message to the standard error output in case of fatal errors.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+Returns the new state, or <code class="Dv" title="Dv">NULL</code> if there is a
+  memory allocation error.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">lua_atpanic(3)</a>,
+  <a class="Xr" title="Xr">lua_newstate(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_newstate</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 26, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 1704cc31862ac1d8fbacfa41f77b98e144a47727 (mode 644)
--- /dev/null
+++ luaL_openlibs.3
@@ -0,0 +1,24 @@
+.Dd $Mdocdate: July 26 2022 $
+.Dt LUAL_OPENLIBS 3
+.Os
+.Sh NAME
+.Nm luaL_openlibs
+.Nd opens all standard Lua libraries into the given state
+.Sh SYNOPSIS
+.In lauxlib.h
+.Ft void
+.Fn luaL_openlibs "lua_State *L"
+.Sh DESCRIPTION
+.Fn luaL_openlibs
+opens all standard Lua libraries into the given state.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_openlibs
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + c75d950bcbe09c73880399ae65819a8148484229 (mode 644)
--- /dev/null
+++ luaL_openlibs.3.html
@@ -0,0 +1,48 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_OPENLIBS(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_OPENLIBS(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_OPENLIBS(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_openlibs</code> &#x2014;
+<div class="Nd" title="Nd">opens all standard Lua libraries into the given
+  state</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">luaL_openlibs</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_openlibs</code>() opens all standard Lua
+  libraries into the given state.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_openlibs</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 26, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 7c1e60aeb970394fb04aad723c05e2e6f3a90b86 (mode 644)
--- /dev/null
+++ luaL_optint.3
@@ -0,0 +1,31 @@
+.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 SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_optint
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 433deec1cff8a1f7571102a7d2a84557cf89f5f1 (mode 644)
--- /dev/null
+++ luaL_optint.3.html
@@ -0,0 +1,52 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_OPTINT(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_OPTINT(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_OPTINT(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_optint</code> &#x2014;
+<div class="Nd" title="Nd">casts a number to an int</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">luaL_optint</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  narg</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  d</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_optint</code>() if the function argument
+  <var class="Fa" title="Fa">narg</var> is a number, returns this number cast to
+  an int. If this argument is absent or is
+  <code class="Dv" title="Dv">nil</code>, returns
+  <var class="Fa" title="Fa">d</var>. Otherwise, raises an error.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_optint</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 26, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 483cedaf7adfbea6b1f47f8ba73c6f768c2f478d (mode 644)
--- /dev/null
+++ luaL_optinteger.3
@@ -0,0 +1,33 @@
+.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 SEE ALSO
+.Xr lua_Integer 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_optinteger
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 3b643c6fa2dc966ae6bef82c7040941236c95f52 (mode 644)
--- /dev/null
+++ luaL_optinteger.3.html
@@ -0,0 +1,54 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_OPTINTEGER(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_OPTINTEGER(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_OPTINTEGER(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_optinteger</code> &#x2014;
+<div class="Nd" title="Nd">casts a number to a lua_Integer</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">lua_Integer</var>
+<br/>
+<code class="Fn" title="Fn">luaL_optinteger</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  narg</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">lua_Integer d</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_optinteger</code>() if the function argument
+  <var class="Fa" title="Fa">narg</var> is a number, returns this number cast to
+  a <a class="Xr" title="Xr">lua_Integer(3)</a>. If this argument is absent or
+  is <code class="Dv" title="Dv">nil</code>, returns
+  <var class="Fa" title="Fa">d</var>. Otherwise, raises an error.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">lua_Integer(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_optinteger</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 26, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 9b21ea94bd1d19a5962f05af1de252b84fee97da (mode 644)
--- /dev/null
+++ luaL_optlong.3
@@ -0,0 +1,29 @@
+.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 SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_optlong
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 10e72f55bd20fec4c0c443a1839041a4b1832998 (mode 644)
--- /dev/null
+++ luaL_optlong.3.html
@@ -0,0 +1,51 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_OPTLONG(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_OPTLONG(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_OPTLONG(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_optlong</code> &#x2014;
+<div class="Nd" title="Nd">casts a number to a long</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">long</var>
+<br/>
+<code class="Fn" title="Fn">luaL_optlong</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  narg</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">long
+  d</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_optlong</code>() if the function argument narg
+  is a number, returns this number cast to a long. If this argument is absent or
+  is <code class="Dv" title="Dv">nil</code>, returns
+  <var class="Fa" title="Fa">d</var>. Otherwise, raises an error.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_optlong</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 26, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + b997fc0b2c84a399571b89acff33665f562097a8 (mode 644)
--- /dev/null
+++ luaL_optlstring.3
@@ -0,0 +1,39 @@
+.Dd $Mdocdate: July 26 2022 $
+.Dt LUAL_OPTLSTRING 3
+.Os
+.Sh NAME
+.Nm luaL_optlstring
+.Nd if the function argument is a string, returns this string
+.Sh SYNOPSIS
+.In lauxlib.h
+.Ft const char *
+.Fn luaL_optlstring "lua_State *L" "int narg" "const char *d" "size_t *l"
+.Sh DESCRIPTION
+.Fn luaL_optlstring
+if the function argument
+.Fa narg
+is a string, returns this string.
+If this argument is absent or is
+.Dv nil ,
+returns
+.Fa d .
+Otherwise, raises an error.
+.Pp
+If
+.Fa l
+is not
+.Dv NULL ,
+fills the position
+.Fa *l
+with the results's length.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_optlstring
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + fd83acff3ecf054cceecc278b203bd4f92e738a5 (mode 644)
--- /dev/null
+++ luaL_optlstring.3.html
@@ -0,0 +1,57 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_OPTLSTRING(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_OPTLSTRING(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_OPTLSTRING(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_optlstring</code> &#x2014;
+<div class="Nd" title="Nd">if the function argument is a string, returns this
+  string</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">const char *</var>
+<br/>
+<code class="Fn" title="Fn">luaL_optlstring</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  narg</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const char
+  *d</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">size_t
+  *l</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_optlstring</code>() if the function argument
+  <var class="Fa" title="Fa">narg</var> is a string, returns this string. If
+  this argument is absent or is <code class="Dv" title="Dv">nil</code>, returns
+  <var class="Fa" title="Fa">d</var>. Otherwise, raises an error.
+<div class="Pp"></div>
+If <var class="Fa" title="Fa">l</var> is not
+  <code class="Dv" title="Dv">NULL</code>, fills the position
+  <var class="Fa" title="Fa">*l</var> with the results's length.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_optlstring</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 26, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 1842cb75421391d1bd018fef7e5d8f251791de94 (mode 644)
--- /dev/null
+++ luaL_optnumber.3
@@ -0,0 +1,31 @@
+.Dd $Mdocdate: July 26 2022 $
+.Dt LUAL_OPTNUMBER 3
+.Os
+.Sh NAME
+.Nm luaL_optnumber
+.Nd if the function argument is a number, returns this number
+.Sh SYNOPSIS
+.In lauxlib.h
+.Ft lua_Number
+.Fn luaL_optnumber "lua_State *L" "int narg" "lua_Number d"
+.Sh DESCRIPTION
+.Fn luaL_optnumber
+if the function argument
+.Fa narg
+is a number, returns this number.
+If this argument is absent or is
+.Dv nil ,
+returns
+.Fa d .
+Otherwise, raises an error.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_optnumber
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + c53c102671e5610484e6002e94f05e401aa5ad7f (mode 644)
--- /dev/null
+++ luaL_optnumber.3.html
@@ -0,0 +1,52 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_OPTNUMBER(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_OPTNUMBER(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_OPTNUMBER(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_optnumber</code> &#x2014;
+<div class="Nd" title="Nd">if the function argument is a number, returns this
+  number</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">lua_Number</var>
+<br/>
+<code class="Fn" title="Fn">luaL_optnumber</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  narg</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">lua_Number
+  d</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_optnumber</code>() if the function argument
+  <var class="Fa" title="Fa">narg</var> is a number, returns this number. If
+  this argument is absent or is <code class="Dv" title="Dv">nil</code>, returns
+  <var class="Fa" title="Fa">d</var>. Otherwise, raises an error.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_optnumber</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 26, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 6b77d185adf263527ad5c5222e722accf29960d6 (mode 644)
--- /dev/null
+++ luaL_optstring.3
@@ -0,0 +1,31 @@
+.Dd $Mdocdate: July 26 2022 $
+.Dt LUAL_OPTSTRING 3
+.Os
+.Sh NAME
+.Nm luaL_optstring
+.Nd if the function argument is a string, returns this string
+.Sh SYNOPSIS
+.In lauxlib.h
+.Ft const char *
+.Fn luaL_optstring "lua_State *L" "int narg" "const char *d"
+.Sh DESCRIPTION
+.Fn luaL_optstring
+if the function argument
+.Fa narg
+is a string, returns this string.
+If this argument is absent or is
+.Dv nil ,
+returns
+.Fa d .
+Otherwise, raises an error.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_optstring
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 09066d0388e2f4bd654a87ad1fd8b008d3862e56 (mode 644)
--- /dev/null
+++ luaL_optstring.3.html
@@ -0,0 +1,52 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_OPTSTRING(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_OPTSTRING(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_OPTSTRING(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_optstring</code> &#x2014;
+<div class="Nd" title="Nd">if the function argument is a string, returns this
+  string</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">const char *</var>
+<br/>
+<code class="Fn" title="Fn">luaL_optstring</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  narg</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const char
+  *d</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_optstring</code>() if the function argument
+  <var class="Fa" title="Fa">narg</var> is a string, returns this string. If
+  this argument is absent or is <code class="Dv" title="Dv">nil</code>, returns
+  <var class="Fa" title="Fa">d</var>. Otherwise, raises an error.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_optstring</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 26, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 869dbeb92516ab51cc1ef574e0f0792ea1e109b8 (mode 644)
--- /dev/null
+++ luaL_prepbuffer.3
@@ -0,0 +1,34 @@
+.Dd $Mdocdate: July 26 2022 $
+.Dt LUAL_PREPBUFFER 3
+.Os
+.Sh NAME
+.Nm luaL_prepbuffer
+.Nd prepares a buffer luaL_Buffer
+.Sh SYNOPSIS
+.In lauxlib.h
+.Ft char *
+.Fn luaL_prepbuffer "luaL_Buffer *B"
+.Sh DESCRIPTION
+.Fn luaL_prepbuffer
+returns an address to a space of size
+.Dv LUAL_BUFFERSIZE
+where you can copy a
+string to be added to buffer
+.Fa B
+.Pq see Xr luaL_Buffer 3 .
+After copying the string into this space you must call
+.Xr luaL_addsize 3
+with the size of the string to actually add it to the buffer.
+.Sh SEE ALSO
+.Xr luaL_addsize 3 ,
+.Xr luaL_Buffer 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_prepbuffer
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 8797209914daf88e6d3cb592f8779ec70bab490d (mode 644)
--- /dev/null
+++ luaL_prepbuffer.3.html
@@ -0,0 +1,54 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_PREPBUFFER(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_PREPBUFFER(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_PREPBUFFER(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_prepbuffer</code> &#x2014;
+<div class="Nd" title="Nd">prepares a buffer luaL_Buffer</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">char *</var>
+<br/>
+<code class="Fn" title="Fn">luaL_prepbuffer</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">luaL_Buffer
+  *B</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_prepbuffer</code>() returns an address to a
+  space of size <code class="Dv" title="Dv">LUAL_BUFFERSIZE</code> where you can
+  copy a string to be added to buffer <var class="Fa" title="Fa">B</var> (see
+  <a class="Xr" title="Xr">luaL_Buffer(3)</a>). After copying the string into
+  this space you must call <a class="Xr" title="Xr">luaL_addsize(3)</a> with the
+  size of the string to actually add it to the buffer.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">luaL_addsize(3)</a>,
+  <a class="Xr" title="Xr">luaL_Buffer(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_prepbuffer</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 26, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + e656ecf49c77a5b394ebbd8a4e5a96615d0610a7 (mode 644)
--- /dev/null
+++ luaL_pushresult.3
@@ -0,0 +1,26 @@
+.Dd $Mdocdate: July 22 2022 $
+.Dt LUAL_PUSHRESULT 3
+.Os
+.Sh NAME
+.Nm luaL_pushresult
+.Nd finishes the use of buffer
+.Sh SYNOPSIS
+.In luaxlib.h
+.Ft void
+.Fn luaL_pushresult "luaL_Buffer *B"
+.Sh DESCRIPTION
+.Fn luaL_pushresult
+finishes the use of buffer
+.Fa B
+leaving the final string on the top of the stack.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_pushresult
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 7e05c4ce22483694ea54543b2cc236ea375a6091 (mode 644)
--- /dev/null
+++ luaL_pushresult.3.html
@@ -0,0 +1,48 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_PUSHRESULT(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_PUSHRESULT(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_PUSHRESULT(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_pushresult</code> &#x2014;
+<div class="Nd" title="Nd">finishes the use of buffer</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">luaxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">luaL_pushresult</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">luaL_Buffer
+  *B</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_pushresult</code>() finishes the use of buffer
+  <var class="Fa" title="Fa">B</var> leaving the final string on the top of the
+  stack.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_pushresult</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 22, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + c87a17a20bf74d82738832058953584c9b2e983e (mode 644)
--- /dev/null
+++ luaL_ref.3
@@ -0,0 +1,50 @@
+.Dd $Mdocdate: July 21 2022 $
+.Dt LUAL_REF 3
+.Os
+.Sh NAME
+.Nm luaL_ref
+.Nd creates and returns a reference for the object at the top of the stack and
+pops the object
+.Sh SYNOPSIS
+.In lauxlib.h
+.Ft int
+.Fn luaL_ref "lua_State *L" "int t"
+.Sh DESCRIPTION
+.Fn luaL_ref
+creates and returns a
+.Em reference ,
+in the table at index
+.Fa t ,
+for the object at the top of the stack (and pops the object).
+.Pp
+A reference is a unique integer key.
+As long as you do not manually add integer keys into table
+.Fa t ,
+.Nm luaL_ref
+ensures the uniqueness of the key it returns.
+You can retrieve an object referred by reference r by calling
+.Em lua_rawgeti(L, t, r) .
+Function
+.Xr luaL_unref 3
+frees a reference and its associated object.
+.Sh RETURN VALUES
+If the object at the top of the stack is
+.Dv nil ,
+.Nm luaL_ref returns the constant
+.Dv LUA_REFNIL .
+The constant
+.Dv LUA_NOREF
+is guaranteed to be different from any reference returned by
+.Nm luaL_ref .
+.Sh SEE ALSO
+.Xr luaL_unref 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_ref
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + cc9d1c81f82d13ac07ce0716097ca677aa583f70 (mode 644)
--- /dev/null
+++ luaL_ref.3.html
@@ -0,0 +1,68 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_REF(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_REF(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_REF(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_ref</code> &#x2014;
+<div class="Nd" title="Nd">creates and returns a reference for the object at the
+  top of the stack and pops the object</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">luaL_ref</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  t</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_ref</code>() creates and returns a
+  <i class="Em" title="Em">reference</i>, in the table at index
+  <var class="Fa" title="Fa">t</var>, for the object at the top of the stack
+  (and pops the object).
+<div class="Pp"></div>
+A reference is a unique integer key. As long as you do not manually add integer
+  keys into table <var class="Fa" title="Fa">t</var>,
+  <code class="Nm" title="Nm">luaL_ref</code> ensures the uniqueness of the key
+  it returns. You can retrieve an object referred by reference r by calling
+  <i class="Em" title="Em">lua_rawgeti(L, t, r)</i>. Function
+  <a class="Xr" title="Xr">luaL_unref(3)</a> frees a reference and its
+  associated object.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+If the object at the top of the stack is <code class="Dv" title="Dv">nil</code>,
+  <code class="Nm" title="Nm">luaL_ref returns the constant</code>
+  <code class="Dv" title="Dv">LUA_REFNIL</code>. The constant
+  <code class="Dv" title="Dv">LUA_NOREF</code> is guaranteed to be different
+  from any reference returned by <code class="Nm" title="Nm">luaL_ref</code>.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">luaL_unref(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_ref</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 21, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + a9f1855b08c8bd5c5144e5c7d21ab96c2ea56ad5 (mode 644)
--- /dev/null
+++ luaL_register.3
@@ -0,0 +1,52 @@
+.Dd $Mdocdate: July 21 2022 $
+.Dt LUAL_REGISTER 3
+.Os
+.Sh NAME
+.Nm luaL_register
+.Nd opens a library
+.Sh SYNOPSIS
+.In lauxlib.h
+.Ft void
+.Fn luaL_register "lua_State *L" "const char *libname" "const luaL_Reg *l"
+.Sh DESCRIPTION
+.Fn luaL_register
+opens a library.
+.Pp
+When called with
+.Fa libname
+equal to
+.Dv NULL ,
+it simply registers all functions in
+the list
+.Fa l
+.Pq see Xr luaL_Reg 3
+into the table on the top of the stack.
+.Pp
+When called with a non-null
+.Fa libname ,
+.Nm luaL_register 3
+creates a new table t, sets it as the value of the global variable
+.Fa libname ,
+sets it as the value of
+.Em package.loaded[libname] ,
+and registers on it all functions in the list
+.Fa l .
+If there is a table in
+.Em package.loaded[libname]
+or in variable
+.Fa libname ,
+reuses this table instead of creating a new one.
+.Pp
+In any case the function leaves the table on the top of the stack.
+.Sh SEE ALSO
+.Xr luaL_Reg 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_register
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 0cfeb40650ac5c4d773155cf924033dcd8900c12 (mode 644)
--- /dev/null
+++ luaL_register.3.html
@@ -0,0 +1,68 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_REGISTER(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_REGISTER(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_REGISTER(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_register</code> &#x2014;
+<div class="Nd" title="Nd">opens a library</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">luaL_register</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const char
+  *libname</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const
+  luaL_Reg *l</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_register</code>() opens a library.
+<div class="Pp"></div>
+When called with <var class="Fa" title="Fa">libname</var> equal to
+  <code class="Dv" title="Dv">NULL</code>, it simply registers all functions in
+  the list <var class="Fa" title="Fa">l</var> (see
+  <a class="Xr" title="Xr">luaL_Reg(3)</a>) into the table on the top of the
+  stack.
+<div class="Pp"></div>
+When called with a non-null <var class="Fa" title="Fa">libname</var>,
+  <code class="Nm" title="Nm">luaL_register 3</code> creates a new table t, sets
+  it as the value of the global variable
+  <var class="Fa" title="Fa">libname</var>, sets it as the value of
+  <i class="Em" title="Em">package.loaded[libname]</i>, and registers on it all
+  functions in the list <var class="Fa" title="Fa">l</var>. If there is a table
+  in <i class="Em" title="Em">package.loaded[libname]</i> or in variable
+  <var class="Fa" title="Fa">libname</var>, reuses this table instead of
+  creating a new one.
+<div class="Pp"></div>
+In any case the function leaves the table on the top of the stack.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">luaL_Reg(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_register</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 21, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + de478df7dba5bd65c0441e57fbe1d50d1901b082 (mode 644)
--- /dev/null
+++ luaL_typename.3
@@ -0,0 +1,24 @@
+.Dd $Mdocdate: July 21 2022 $
+.Dt LUAL_TYPENAME 3
+.Os
+.Sh NAME
+.Nm luaL_typename
+.Nd returns the name of the type of the value
+.Sh SYNOPSIS
+.In lauxlib.h
+.Ft const char *
+.Fn luaL_typename "lua_State *L" "int index"
+.Sh DESCRIPTION
+.Fn luaL_typename
+returns the name of the type of the value at the given index.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_typename
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + a1a68528e6fb2f377b51003ed8bdc3caacf09a77 (mode 644)
--- /dev/null
+++ luaL_typename.3.html
@@ -0,0 +1,48 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_TYPENAME(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_TYPENAME(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_TYPENAME(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_typename</code> &#x2014;
+<div class="Nd" title="Nd">returns the name of the type of the value</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">const char *</var>
+<br/>
+<code class="Fn" title="Fn">luaL_typename</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_typename</code>() returns the name of the type
+  of the value at the given index.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_typename</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 21, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 03567dc44aa7e286c63dcd85b835e689da128386 (mode 644)
--- /dev/null
+++ luaL_typerror.3
@@ -0,0 +1,38 @@
+.Dd $Mdocdate: July 21 2022 $
+.Dt LUAL_TYPERROR 3
+.Os
+.Sh NAME
+.Nm luaL_typerror
+.Nd generates an error with a message
+.Sh SYNOPSIS
+.In lauxlib.h
+.Ft int
+.Fn luaL_typerror "lua_State *L" "int narg" "const char *tname"
+.Sh DESCRIPTION
+.Fn luaL_typerror
+generates an error with a message like the following:
+.Pp
+.Em location :
+bad argument
+.Fa narg to
+.Em 'func'
+(
+.Fa tname
+expected, got rt)
+.Pp
+where location is produced by
+.Xr luaL_where 3 ,
+func is the name of the current function, and rt is the type name of the actual
+argument.
+.Sh SEE ALSO
+.Xr luaL_where 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_typerror
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 8a9caf75d55a589df4e4131e53da4bed88bd9175 (mode 644)
--- /dev/null
+++ luaL_typerror.3.html
@@ -0,0 +1,59 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_TYPERROR(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_TYPERROR(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_TYPERROR(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_typerror</code> &#x2014;
+<div class="Nd" title="Nd">generates an error with a message</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">luaL_typerror</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  narg</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const char
+  *tname</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_typerror</code>() generates an error with a
+  message like the following:
+<div class="Pp"></div>
+<i class="Em" title="Em">location</i>: bad argument
+  <var class="Fa" title="Fa">narg to</var> <i class="Em" title="Em">'func'</i> (
+  <var class="Fa" title="Fa">tname</var> expected, got rt)
+<div class="Pp"></div>
+where location is produced by <a class="Xr" title="Xr">luaL_where(3)</a>, func
+  is the name of the current function, and rt is the type name of the actual
+  argument.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">luaL_where(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_typerror</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 21, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 796985f0656070f0138edbcefd7265172d88364e (mode 644)
--- /dev/null
+++ luaL_unref.3
@@ -0,0 +1,39 @@
+.Dd $Mdocdate: July 21 2022 $
+.Dt LUAL_UNREF 3
+.Os
+.Sh NAME
+.Nm luaL_unref
+.Nd releases reference from the table
+.Sh SYNOPSIS
+.In lauxlib.h
+.Ft void
+.Fn luaL_unref "lua_State *L" "int t" "int ref"
+.Sh DESCRIPTION
+.Fn luaL_unref
+releases reference
+.Fa ref
+from the table at index
+.Fa t
+.Pq see Xr luaL_ref 3 .
+The entry is removed from the table, so that the referred object can be
+collected.
+The reference ref is also freed to be used again.
+.Pp
+If ref is
+.Dv LUA_NOREF
+or
+.Dv LUA_REFNIL ,
+.Nm luaL_unref
+does nothing.
+.Sh SEE ALSO
+.Xr luaL_ref 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_unref
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + bc91cf9dc651279629d1fc66a926548599a140ad (mode 644)
--- /dev/null
+++ luaL_unref.3.html
@@ -0,0 +1,58 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_UNREF(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_UNREF(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_UNREF(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_unref</code> &#x2014;
+<div class="Nd" title="Nd">releases reference from the table</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">luaL_unref</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int t</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">int ref</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_unref</code>() releases reference
+  <var class="Fa" title="Fa">ref</var> from the table at index
+  <var class="Fa" title="Fa">t</var> (see
+  <a class="Xr" title="Xr">luaL_ref(3)</a>). The entry is removed from the
+  table, so that the referred object can be collected. The reference ref is also
+  freed to be used again.
+<div class="Pp"></div>
+If ref is <code class="Dv" title="Dv">LUA_NOREF</code> or
+  <code class="Dv" title="Dv">LUA_REFNIL</code>,
+  <code class="Nm" title="Nm">luaL_unref</code> does nothing.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">luaL_ref(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_unref</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 21, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 7a268acae8672ce544f0c19ec325d3e66ce20a2f (mode 644)
--- /dev/null
+++ luaL_where.3
@@ -0,0 +1,36 @@
+.Dd $Mdocdate: July 21 2022 $
+.Dt LUAL_WHERE 3
+.Os
+.Sh NAME
+.Nm luaL_where
+.Nd pushes onto the stack a string identifying the current position of the
+control
+.Sh SYNOPSIS
+.In lauxlib.h
+.Ft void
+.Fn luaL_where "lua_State *L" "int lvl"
+.Sh DESCRIPTION
+.Fn luaL_where
+pushes onto the stack a string identifying the current position of the control
+at level
+.Fa lvl
+in the call stack.
+Typically this string has the following format:
+.Pp
+.Em chunkname:currentline :
+.Pp
+Level 0 is the running function, level 1 is the function that called the
+running function, etc.
+.Pp
+This function is used to build a prefix for error messages.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_where
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + a1f7a9b11e38dd9714177983d379ba7fa9452740 (mode 644)
--- /dev/null
+++ luaL_where.3.html
@@ -0,0 +1,58 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUAL_WHERE(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUAL_WHERE(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUAL_WHERE(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">luaL_where</code> &#x2014;
+<div class="Nd" title="Nd">pushes onto the stack a string identifying the
+  current position of the control</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lauxlib.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">luaL_where</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  lvl</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">luaL_where</code>() pushes onto the stack a string
+  identifying the current position of the control at level
+  <var class="Fa" title="Fa">lvl</var> in the call stack. Typically this string
+  has the following format:
+<div class="Pp"></div>
+<i class="Em" title="Em">chunkname:currentline</i>:
+<div class="Pp"></div>
+Level 0 is the running function, level 1 is the function that called the running
+  function, etc.
+<div class="Pp"></div>
+This function is used to build a prefix for error messages.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_where</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 21, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 13933cd6a10d047b432ef590346d3871c064d624 (mode 644)
--- /dev/null
+++ lua_Alloc.3
@@ -0,0 +1,99 @@
+.Dd $Mdocdate: July 13 2022 $
+.Dt LUA_ALLOC 3
+.Os
+.Sh NAME
+.Nm lua_Alloc
+.Nd the type of the memory-allocation function used by Lua states
+.Sh SYNOPSIS
+.In lua.h
+.Ft typedef void *
+.Fn (*lua_Alloc) "void *ud" "void *ptr" "size_t osize" "size_t nsize"
+.Sh DESCRIPTION
+The type of the memory-allocation function used by Lua states.
+The allocator function must provide a functionality similar to
+.Xr realloc 3 ,
+but not exactly the same.
+Its arguments are
+.Fa ud ,
+an opaque pointer passed to
+.Xr lua_newstate 3 ;
+.Fa ptr ,
+a pointer to the block being allocated/reallocated/freed;
+.Fa osize ,
+the original size of the block;
+.Fa nsize ,
+the new size of the block.
+.Fa ptr
+is
+.Dv NULL
+if and only if
+.Fa osize
+is zero.
+When
+.Fa nsize
+is not zero and
+.Fa osize
+is zero, the allocator should behave like
+.Xr malloc 3 .
+When
+.Fa nsize
+and
+.Fa osize
+are not zero, the allocator behaves like
+.Xr realloc 3 .
+Lua assumes that the allocator never fails when
+.Fa osize
+>=
+.Fa nsize .
+.Pp
+Here is a simple implementation for the allocator function.
+It is used in the auxiliary library by
+.Xr luaL_newstate 3 .
+.Pp
+.Bd -literal -offset indent -compact
+static void *l_alloc (void *ud, void *ptr, size_t osize,
+                                           size_t nsize) {
+  (void)ud;  (void)osize;  /* not used */
+  if (nsize == 0) {
+    free(ptr);
+    return NULL;
+  }
+  else
+    return realloc(ptr, nsize);
+}
+.Ed
+.Pp
+This code assumes that
+.Em free(NULL)
+has no effect and that
+.Em realloc(NULL, size)
+is equivalent to
+.Em malloc(size) .
+ANSI C ensures both behaviors.
+.Sh RETURN VALUES
+When
+.Fa nsize
+is zero, the allocator must return
+.Dv NULL ;
+if
+.Fa osize
+is not zero, it should free the block pointed to by
+.Fa ptr .
+When
+.Fa nsize
+is not zero, the allocator returns
+.Dv NULL
+if and only if it cannot fill the request.
+.Sh SEE ALSO
+.Xr lua_newstate 3 ,
+.Xr luaL_newstate 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_Alloc
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 84d85ebb5fb7b598d80afe44ddd879e4fc4189a1 (mode 644)
--- /dev/null
+++ lua_Alloc.3.html
@@ -0,0 +1,102 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_ALLOC(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_ALLOC(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_ALLOC(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_Alloc</code> &#x2014;
+<div class="Nd" title="Nd">the type of the memory-allocation function used by
+  Lua states</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">typedef void *</var>
+<br/>
+<code class="Fn" title="Fn">(*lua_Alloc)</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">void
+  *ud</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">void
+  *ptr</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">size_t
+  osize</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">size_t
+  nsize</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The type of the memory-allocation function used by Lua states. The allocator
+  function must provide a functionality similar to
+  <a class="Xr" title="Xr">realloc(3)</a>, but not exactly the same. Its
+  arguments are <var class="Fa" title="Fa">ud</var>, an opaque pointer passed to
+  <a class="Xr" title="Xr">lua_newstate(3)</a>;
+  <var class="Fa" title="Fa">ptr</var>, a pointer to the block being
+  allocated/reallocated/freed; <var class="Fa" title="Fa">osize</var>, the
+  original size of the block; <var class="Fa" title="Fa">nsize</var>, the new
+  size of the block. <var class="Fa" title="Fa">ptr</var> is
+  <code class="Dv" title="Dv">NULL</code> if and only if
+  <var class="Fa" title="Fa">osize</var> is zero. When
+  <var class="Fa" title="Fa">nsize</var> is not zero and
+  <var class="Fa" title="Fa">osize</var> is zero, the allocator should behave
+  like <a class="Xr" title="Xr">malloc(3)</a>. When
+  <var class="Fa" title="Fa">nsize</var> and
+  <var class="Fa" title="Fa">osize</var> are not zero, the allocator behaves
+  like <a class="Xr" title="Xr">realloc(3)</a>. Lua assumes that the allocator
+  never fails when <var class="Fa" title="Fa">osize</var> &gt;=
+  <var class="Fa" title="Fa">nsize</var>.
+<div class="Pp"></div>
+Here is a simple implementation for the allocator function. It is used in the
+  auxiliary library by <a class="Xr" title="Xr">luaL_newstate(3)</a>.
+<div class="Pp"></div>
+<div class="Bd Bd-indent">
+<pre class="Li">
+static void *l_alloc (void *ud, void *ptr, size_t osize, 
+                                           size_t nsize) { 
+  (void)ud;  (void)osize;  /* not used */ 
+  if (nsize == 0) { 
+    free(ptr); 
+    return NULL; 
+  } 
+  else 
+    return realloc(ptr, nsize); 
+}
+</pre>
+</div>
+<div class="Pp"></div>
+This code assumes that <i class="Em" title="Em">free(NULL)</i> has no effect and
+  that <i class="Em" title="Em">realloc(NULL, size)</i> is equivalent to
+  <i class="Em" title="Em">malloc(size)</i>. ANSI C ensures both behaviors.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+When <var class="Fa" title="Fa">nsize</var> is zero, the allocator must return
+  <code class="Dv" title="Dv">NULL</code>; if
+  <var class="Fa" title="Fa">osize</var> is not zero, it should free the block
+  pointed to by <var class="Fa" title="Fa">ptr</var>. When
+  <var class="Fa" title="Fa">nsize</var> is not zero, the allocator returns
+  <code class="Dv" title="Dv">NULL</code> if and only if it cannot fill the
+  request.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">lua_newstate(3)</a>,
+  <a class="Xr" title="Xr">luaL_newstate(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_Alloc</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 13, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + caf0e76a893df3d52ca1d9e356e93977d1da9530 (mode 644)
--- /dev/null
+++ lua_CFunction.3
@@ -0,0 +1,62 @@
+.Dd $Mdocdate: July 19 2022 $
+.Dt LUA_CFUNCTION 3
+.Os
+.Sh NAME
+.Nm lua_CFunction
+.Nd type for C functions
+.Sh SYNOPSIS
+.In lua.h
+.Ft typedef int *
+.Fn lua_CFunction "lua_State *L"
+.Sh DESCRIPTION
+.Fn lua_CFunction
+type for C functions.
+.Pp
+In order to communicate properly with Lua, a C function must use the following
+protocol, which defines the way parameters and results are passed: a C function
+receives its arguments from Lua in its stack in direct order
+.Pq the first argument is pushed first .
+So, when the function starts, lua_gettop(L) returns the number of arguments
+received by the function.
+The first argument
+.Pq if any
+is at index 1 and its last argument is at index lua_gettop(L).
+To return values to Lua, a C function just pushes them onto the stack, in
+direct order
+.Pq the first result is pushed first ,
+and returns the number of results.
+Any other value in the stack below the results will be properly discarded by
+Lua.
+Like a Lua function, a C function called by Lua can also return many results.
+.Pp
+As an example, the following function receives a variable number of numerical
+arguments and returns their average and sum:
+.Pp
+.Bd -literal -offset indent -compact
+static int foo (lua_State *L) {
+  int n = lua_gettop(L);    /* number of arguments */
+  lua_Number sum = 0;
+  int i;
+  for (i = 1; i <= n; i++) {
+    if (!lua_isnumber(L, i)) {
+      lua_pushstring(L, "incorrect argument");
+      lua_error(L);
+    }
+    sum += lua_tonumber(L, i);
+  }
+  lua_pushnumber(L, sum/n);        /* first result */
+  lua_pushnumber(L, sum);         /* second result */
+  return 2;                   /* number of results */
+}
+.Ed
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_CFunction
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 9edbe15877c63edb87e71d02d730f0bf04fcfc2c (mode 644)
--- /dev/null
+++ lua_CFunction.3.html
@@ -0,0 +1,81 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_CFUNCTION(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_CFUNCTION(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_CFUNCTION(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_CFunction</code> &#x2014;
+<div class="Nd" title="Nd">type for C functions</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">typedef int *</var>
+<br/>
+<code class="Fn" title="Fn">lua_CFunction</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_CFunction</code>() type for C functions.
+<div class="Pp"></div>
+In order to communicate properly with Lua, a C function must use the following
+  protocol, which defines the way parameters and results are passed: a C
+  function receives its arguments from Lua in its stack in direct order (the
+  first argument is pushed first). So, when the function starts, lua_gettop(L)
+  returns the number of arguments received by the function. The first argument
+  (if any) is at index 1 and its last argument is at index lua_gettop(L). To
+  return values to Lua, a C function just pushes them onto the stack, in direct
+  order (the first result is pushed first), and returns the number of results.
+  Any other value in the stack below the results will be properly discarded by
+  Lua. Like a Lua function, a C function called by Lua can also return many
+  results.
+<div class="Pp"></div>
+As an example, the following function receives a variable number of numerical
+  arguments and returns their average and sum:
+<div class="Pp"></div>
+<div class="Bd Bd-indent">
+<pre class="Li">
+static int foo (lua_State *L) { 
+  int n = lua_gettop(L);    /* number of arguments */ 
+  lua_Number sum = 0; 
+  int i; 
+  for (i = 1; i &lt;= n; i++) { 
+    if (!lua_isnumber(L, i)) { 
+      lua_pushstring(L, &quot;incorrect argument&quot;); 
+      lua_error(L); 
+    } 
+    sum += lua_tonumber(L, i); 
+  } 
+  lua_pushnumber(L, sum/n);        /* first result */ 
+  lua_pushnumber(L, sum);         /* second result */ 
+  return 2;                   /* number of results */ 
+}
+</pre>
+</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_CFunction</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 19, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + c946f6c2ea20475293d64773d7ce4b40f499f4be (mode 644)
--- /dev/null
+++ lua_Debug.3
@@ -0,0 +1,94 @@
+.Dd $Mdocdate: July 19 2022 $
+.Dt LUA_DEBUG 3
+.Os
+.Sh NAME
+.Nm lua_Debug
+.Nd structure used to carry different pieces of information about an active
+function
+.Sh SYNOPSIS
+.In lua.h
+.Vt typedef struct lua_Debug ;
+.Sh DESCRIPTION
+.Fn lua_Debug
+a structure used to carry different pieces of information about an active
+function.
+.Xr lua_getstack 3
+fills only the private part of this structure, for later use.
+To fill the other fields of
+.Nm lua_Debug
+with useful information, call
+.Xr lua_getinfo 3 .
+.Pp
+.Vt lua_Debug
+is defined as:
+.Bd -literal
+typedef struct lua_Debug {
+        int event;
+        const char *name;           /* (n) */
+        const char *namewhat;       /* (n) */
+        const char *what;           /* (S) */
+        const char *source;         /* (S) */
+        int currentline;            /* (l) */
+        int nups;                   /* (u) number of upvalues */
+        int linedefined;            /* (S) */
+        int lastlinedefined;        /* (S) */
+        char short_src[LUA_IDSIZE]; /* (S) */
+        /* private part */
+        other fields
+} lua_Debug;
+.Ed
+.Pp
+The fields of
+.Nm lua_Debug
+have the following meaning:
+.Pp
+.Bl -tag -width lastlinedefined: -offset indent -compact
+.It Sy source :
+If the function was defined in a string, then source is that string.
+If the function was defined in a file, then source starts with a '@' followed
+by the file name.
+.It Sy short_src :
+a "printable" version of source, to be used in error messages.
+.It Sy linedefined :
+the line number where the definition of the function starts.
+.It Sy lastlinedefined :
+the line number where the definition of the function ends.
+.It Sy what :
+the string "Lua" if the function is a Lua function, "C" if it is a C function,
+"main" if it is the main part of a chunk, and "tail" if it was a function that
+did a tail call.
+In the latter case, Lua has no other information about the function.
+.It Sy currentline :
+the current line where the given function is executing.
+When no line information is available, currentline is set to -1.
+.It Sy name :
+a reasonable name for the given function.
+Because functions in Lua are first-class values, they do not have a fixed name:
+some functions can be the value of multiple global variables, while others can
+be stored only in a table field.
+The
+.Xr lua_getinfo 3
+function checks how the function was called to find a suitable name.
+If it cannot find a name, then name is set to
+.Dv NULL .
+.It Sy namewhat :
+explains the name field.
+The value of namewhat can be "global", "local", "method", "field", "upvalue",
+or "" (the empty string), according to how the function was called. (Lua uses
+the empty string when no other option seems to apply.)
+.It Sy nups :
+the number of upvalues of the function.
+.El
+.Sh SEE ALSO
+.Xr lua_getinfo 3 ,
+.Xr lua_getstack 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_Debug
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + c6a92d9ace16e3474fb79a313faf7eb71259b166 (mode 644)
--- /dev/null
+++ lua_Debug.3.html
@@ -0,0 +1,117 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_DEBUG(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_DEBUG(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_DEBUG(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_Debug</code> &#x2014;
+<div class="Nd" title="Nd">structure used to carry different pieces of
+  information about an active function</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Vt" title="Vt">typedef struct lua_Debug</var>;
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_Debug</code>() a structure used to carry
+  different pieces of information about an active function.
+  <a class="Xr" title="Xr">lua_getstack(3)</a> fills only the private part of
+  this structure, for later use. To fill the other fields of
+  <code class="Nm" title="Nm">lua_Debug</code> with useful information, call
+  <a class="Xr" title="Xr">lua_getinfo(3)</a>.
+<div class="Pp"></div>
+<var class="Vt" title="Vt">lua_Debug</var> is defined as:
+<div class="Pp"></div>
+<div class="Bd">
+<pre class="Li">
+typedef struct lua_Debug { 
+        int event; 
+        const char *name;           /* (n) */ 
+        const char *namewhat;       /* (n) */ 
+        const char *what;           /* (S) */ 
+        const char *source;         /* (S) */ 
+        int currentline;            /* (l) */ 
+        int nups;                   /* (u) number of upvalues */ 
+        int linedefined;            /* (S) */ 
+        int lastlinedefined;        /* (S) */ 
+        char short_src[LUA_IDSIZE]; /* (S) */ 
+        /* private part */ 
+        other fields 
+} lua_Debug;
+</pre>
+</div>
+<div class="Pp"></div>
+The fields of <code class="Nm" title="Nm">lua_Debug</code> have the following
+  meaning:
+<div class="Pp"></div>
+<div class="Bd-indent">
+<dl class="Bl-tag Bl-compact">
+  <dt><b class="Sy" title="Sy">source</b>:</dt>
+  <dd>If the function was defined in a string, then source is that string. If
+      the function was defined in a file, then source starts with a '@' followed
+      by the file name.</dd>
+  <dt><b class="Sy" title="Sy">short_src</b>:</dt>
+  <dd>a &quot;printable&quot; version of source, to be used in error
+    messages.</dd>
+  <dt><b class="Sy" title="Sy">linedefined</b>:</dt>
+  <dd>the line number where the definition of the function starts.</dd>
+  <dt><b class="Sy" title="Sy">lastlinedefined</b>:</dt>
+  <dd>the line number where the definition of the function ends.</dd>
+  <dt><b class="Sy" title="Sy">what</b>:</dt>
+  <dd>the string &quot;Lua&quot; if the function is a Lua function,
+      &quot;C&quot; if it is a C function, &quot;main&quot; if it is the main
+      part of a chunk, and &quot;tail&quot; if it was a function that did a tail
+      call. In the latter case, Lua has no other information about the
+    function.</dd>
+  <dt><b class="Sy" title="Sy">currentline</b>:</dt>
+  <dd>the current line where the given function is executing. When no line
+      information is available, currentline is set to -1.</dd>
+  <dt><b class="Sy" title="Sy">name</b>:</dt>
+  <dd>a reasonable name for the given function. Because functions in Lua are
+      first-class values, they do not have a fixed name: some functions can be
+      the value of multiple global variables, while others can be stored only in
+      a table field. The <a class="Xr" title="Xr">lua_getinfo(3)</a> function
+      checks how the function was called to find a suitable name. If it cannot
+      find a name, then name is set to
+    <code class="Dv" title="Dv">NULL</code>.</dd>
+  <dt><b class="Sy" title="Sy">namewhat</b>:</dt>
+  <dd>explains the name field. The value of namewhat can be &quot;global&quot;,
+      &quot;local&quot;, &quot;method&quot;, &quot;field&quot;,
+      &quot;upvalue&quot;, or &quot;&quot; (the empty string), according to how
+      the function was called. (Lua uses the empty string when no other option
+      seems to apply.)</dd>
+  <dt><b class="Sy" title="Sy">nups</b>:</dt>
+  <dd>the number of upvalues of the function.</dd>
+</dl>
+</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">lua_getinfo(3)</a>,
+  <a class="Xr" title="Xr">lua_getstack(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_Debug</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 19, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + f86db2cb387e94e4375e935fce02af076dc70d0a (mode 644)
--- /dev/null
+++ lua_Hook.3
@@ -0,0 +1,49 @@
+.Dd $Mdocdate: July 18 2022 $
+.Dt LUA_HOOK 3
+.Os
+.Sh NAME
+.Nm lua_Hook
+.Nd type for debugging hook functions
+.Sh SYNOPSIS
+.In lua.h
+.Ft typedef void *
+.Fn lua_Hook "lua_State *L" "lua_Debug *ar"
+.Sh DESCRIPTION
+.Fn lua_Hook
+type for debugging hook functions.
+.Pp
+Whenever a hook is called, its ar argument has its field event set to the
+specific event that triggered the hook.
+Lua identifies these events with the following constants:
+.Dv LUA_HOOKCALL ,
+.Dv LUA_HOOKRET ,
+.Dv LUA_HOOKTAILRET ,
+.Dv LUA_HOOKLINE ,
+and
+.Dv LUA_HOOKCOUNT .
+Moreover, for line events, the field currentline is also set.
+To get the value of any other field in ar, the hook must call
+.Xr lua_getinfo 3 .
+For return events, event can be
+.Dv LUA_HOOKRET ,
+the normal value, or
+.Dv LUA_HOOKTAILRET .
+In the latter case, Lua is simulating a return from a function that did a tail
+call; in this case, it is useless to call
+.Xr lua_getinfo 3 .
+.Pp
+While Lua is running a hook, it disables other calls to hooks.
+Therefore, if a hook calls back Lua to execute a function or a chunk, this
+execution occurs without any calls to hooks.
+.Sh SEE ALSO
+.Xr lua_getinfo 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_Hook
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + ffbed084881cddb186f5a67778649f1757416471 (mode 644)
--- /dev/null
+++ lua_Hook.3.html
@@ -0,0 +1,68 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_HOOK(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_HOOK(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_HOOK(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_Hook</code> &#x2014;
+<div class="Nd" title="Nd">type for debugging hook functions</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">typedef void *</var>
+<br/>
+<code class="Fn" title="Fn">lua_Hook</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">lua_Debug
+  *ar</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_Hook</code>() type for debugging hook functions.
+<div class="Pp"></div>
+Whenever a hook is called, its ar argument has its field event set to the
+  specific event that triggered the hook. Lua identifies these events with the
+  following constants: <code class="Dv" title="Dv">LUA_HOOKCALL</code>,
+  <code class="Dv" title="Dv">LUA_HOOKRET</code>,
+  <code class="Dv" title="Dv">LUA_HOOKTAILRET</code>,
+  <code class="Dv" title="Dv">LUA_HOOKLINE</code>, and
+  <code class="Dv" title="Dv">LUA_HOOKCOUNT</code>. Moreover, for line events,
+  the field currentline is also set. To get the value of any other field in ar,
+  the hook must call <a class="Xr" title="Xr">lua_getinfo(3)</a>. For return
+  events, event can be <code class="Dv" title="Dv">LUA_HOOKRET</code>, the
+  normal value, or <code class="Dv" title="Dv">LUA_HOOKTAILRET</code>. In the
+  latter case, Lua is simulating a return from a function that did a tail call;
+  in this case, it is useless to call
+  <a class="Xr" title="Xr">lua_getinfo(3)</a>.
+<div class="Pp"></div>
+While Lua is running a hook, it disables other calls to hooks. Therefore, if a
+  hook calls back Lua to execute a function or a chunk, this execution occurs
+  without any calls to hooks.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">lua_getinfo(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_Hook</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 18, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + f49d8db27cb7e7373f7b7d31e2316e8eaf5e7870 (mode 644)
--- /dev/null
+++ lua_Integer.3
@@ -0,0 +1,27 @@
+.Dd $Mdocdate: July 18 2022 $
+.Dt LUA_INTEGER 3
+.Os
+.Sh NAME
+.Nm lua_Integer
+.Nd type to represent integral values
+.Sh SYNOPSIS
+.In lua.h
+.Vt typedef ptrdiff_t lua_Integer ;
+.Sh DESCRIPTION
+.Vt lua_Integer
+the type used by the Lua API to represent integral values.
+By default it is a
+.Dv ptrdiff_t ,
+which is usually the largest signed integral type the machine handles
+.Qq comfortably .
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_Integer
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + d0a48d99fe94f54a685632c093f8ff81b8dd65d0 (mode 644)
--- /dev/null
+++ lua_Integer.3.html
@@ -0,0 +1,46 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_INTEGER(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_INTEGER(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_INTEGER(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_Integer</code> &#x2014;
+<div class="Nd" title="Nd">type to represent integral values</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Vt" title="Vt">typedef ptrdiff_t lua_Integer</var>;
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<var class="Vt" title="Vt">lua_Integer</var> the type used by the Lua API to
+  represent integral values. By default it is a
+  <code class="Dv" title="Dv">ptrdiff_t</code>, which is usually the largest
+  signed integral type the machine handles &#x201C;comfortably&#x201D;.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_Integer</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 18, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + ea8f43ef4ac40b9430609da1ed8807a4b44da017 (mode 644)
--- /dev/null
+++ lua_Number.3
@@ -0,0 +1,27 @@
+.Dd $Mdocdate: July 15 2022 $
+.Dt LUA_NUMBER 3
+.Os
+.Sh NAME
+.Nm lua_Number
+.Nd type of numbers in Lua
+.Sh SYNOPSIS
+.In lua.h
+.Vt typedef double lua_Number ;
+.Sh DESCRIPTION
+The type of numbers in Lua.
+By default, it is double, but that can be changed in
+.In luaconf.h .
+.Pp
+Through the configuration file you can change Lua to operate with another type
+for numbers (e.g., float or long).
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Vt lua_Number
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 48df890f4eda76ea6d566f2e2dec2f392840f783 (mode 644)
--- /dev/null
+++ lua_Number.3.html
@@ -0,0 +1,47 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_NUMBER(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_NUMBER(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_NUMBER(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_Number</code> &#x2014;
+<div class="Nd" title="Nd">type of numbers in Lua</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Vt" title="Vt">typedef double lua_Number</var>;
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The type of numbers in Lua. By default, it is double, but that can be changed in
+  <code class="In" title="In">&lt;<a class="In" title="In">luaconf.h</a>&gt;</code>.
+<div class="Pp"></div>
+Through the configuration file you can change Lua to operate with another type
+  for numbers (e.g., float or long).
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <var class="Vt" title="Vt">lua_Number</var> manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 15, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 0939d01f479e774c09c344b49c48e701aecdd5aa (mode 644)
--- /dev/null
+++ lua_Reader.3
@@ -0,0 +1,39 @@
+.Dd $Mdocdate: July 15 2022 $
+.Dt LUA_READER 3
+.Os
+.Sh NAME
+.Nm lua_Reader
+.Nd reader function used by
+.Xr lua_load 3
+.Sh SYNOPSIS
+.In lua.h
+.Ft typedef const char *
+.Fn (*lua_Reader) "lua_State *L" "void *data" "size_t *size"
+.Sh DESCRIPTION
+The
+reader function
+.Fn lua_Reader
+used by
+.Xr lua_load 3 .
+Every time it needs another piece of the chunk,
+.Xr lua_load 3
+calls the reader, passing along its data parameter.
+The reader must return a pointer to a block of memory with a new piece of the
+chunk and set size to the block size.
+The block must exist until the reader function is called again.
+To signal the end of the chunk, the reader must return
+.Dv NULL
+or set size to zero.
+The reader function may return pieces of any size greater than zero.
+.Sh SEE ALSO
+.Xr lua_load 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_Reader
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 598abfbb97ff74396685ab90f1cbd71d24ca4b6f (mode 644)
--- /dev/null
+++ lua_Reader.3.html
@@ -0,0 +1,59 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_READER(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_READER(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_READER(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_Reader</code> &#x2014;
+<div class="Nd" title="Nd">reader function used by
+  <a class="Xr" title="Xr">lua_load(3)</a></div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">typedef const char *</var>
+<br/>
+<code class="Fn" title="Fn">(*lua_Reader)</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">void
+  *data</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">size_t
+  *size</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+The reader function <code class="Fn" title="Fn">lua_Reader</code>() used by
+  <a class="Xr" title="Xr">lua_load(3)</a>. Every time it needs another piece of
+  the chunk, <a class="Xr" title="Xr">lua_load(3)</a> calls the reader, passing
+  along its data parameter. The reader must return a pointer to a block of
+  memory with a new piece of the chunk and set size to the block size. The block
+  must exist until the reader function is called again. To signal the end of the
+  chunk, the reader must return <code class="Dv" title="Dv">NULL</code> or set
+  size to zero. The reader function may return pieces of any size greater than
+  zero.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">lua_load(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_Reader</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 15, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 9cc18caf585d80216f5a20ce4a6bbfef64e157e7 (mode 644)
--- /dev/null
+++ lua_State.3
@@ -0,0 +1,30 @@
+.Dd $Mdocdate: July 14 2022 $
+.Dt LUA_STATE 3
+.Os
+.Sh NAME
+.Nm lua_State
+.Nd opaque structure that keeps the whole state of a Lua interpreter
+.Sh SYNOPSIS
+.In lua.h
+.Vt typedef struct lua_State lua_State ;
+.Sh DESCRIPTION
+.Vt lua_State
+opaque structure that keeps the whole state of a Lua interpreter.
+The Lua library is fully reentrant: it has no global variables.
+All information about a state is kept in this structure.
+A pointer to this state must be passed as the first argument to every function
+in the library, except to
+.Xr lua_newstate 3 ,
+which creates a Lua state from scratch.
+.Sh SEE ALSO
+.Xr lua_newstate 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Vt lua_State
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 880fcd474afb284659ac0fbf6debbd8a8707e75b (mode 644)
--- /dev/null
+++ lua_State.3.html
@@ -0,0 +1,51 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_STATE(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_STATE(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_STATE(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_State</code> &#x2014;
+<div class="Nd" title="Nd">opaque structure that keeps the whole state of a Lua
+  interpreter</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Vt" title="Vt">typedef struct lua_State lua_State</var>;
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<var class="Vt" title="Vt">lua_State</var> opaque structure that keeps the whole
+  state of a Lua interpreter. The Lua library is fully reentrant: it has no
+  global variables. All information about a state is kept in this structure. A
+  pointer to this state must be passed as the first argument to every function
+  in the library, except to <a class="Xr" title="Xr">lua_newstate(3)</a>, which
+  creates a Lua state from scratch.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">lua_newstate(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <var class="Vt" title="Vt">lua_State</var> manual page was written by Sergey
+  Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 14, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 1abbed08ae7e042d21acd3a5aaa7020ddfdd4f1c (mode 644)
--- /dev/null
+++ lua_Writer.3
@@ -0,0 +1,39 @@
+.Dd $Mdocdate: July 18 2022 $
+.Dt LUA_WRITER 3
+.Os
+.Sh NAME
+.Nm lua_Writer
+.Nd type of the writer function used by
+.Xr lua_dump 3
+.Sh SYNOPSIS
+.In lua.h
+.Ft typedef int *
+.Fn lua_Writer "lua_State *L" "const void* p" "size_t sz" "void* ud"
+.Sh DESCRIPTION
+.Vt lua_Writer
+type of the writer function used by
+.Xr lua_dump 3 .
+Every time it produces another piece of chunk,
+.Xr lua_dump 3
+calls the writer, passing along the buffer to be written
+.Pq Fa p ,
+its size
+.Pq Fa sz ,
+and the data parameter supplied to
+.Xr lua_dump 3 .
+.Sh RETURN VALUES
+The writer returns an error code: 0 means no errors; any other value means an
+error and stops
+.Xr lua_dump 3
+from calling the writer again.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Vt lua_Writer
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + d95d6256293d77fec2803cf89e3ab3ebbfbbbdd0 (mode 644)
--- /dev/null
+++ lua_Writer.3.html
@@ -0,0 +1,60 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_WRITER(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_WRITER(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_WRITER(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_Writer</code> &#x2014;
+<div class="Nd" title="Nd">type of the writer function used by
+  <a class="Xr" title="Xr">lua_dump(3)</a></div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">typedef int *</var>
+<br/>
+<code class="Fn" title="Fn">lua_Writer</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const void*
+  p</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">size_t
+  sz</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">void*
+  ud</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<var class="Vt" title="Vt">lua_Writer</var> type of the writer function used by
+  <a class="Xr" title="Xr">lua_dump(3)</a>. Every time it produces another piece
+  of chunk, <a class="Xr" title="Xr">lua_dump(3)</a> calls the writer, passing
+  along the buffer to be written (<var class="Fa" title="Fa">p</var>), its size
+  (<var class="Fa" title="Fa">sz</var>), and the data parameter supplied to
+  <a class="Xr" title="Xr">lua_dump(3)</a>.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+The writer returns an error code: 0 means no errors; any other value means an
+  error and stops <a class="Xr" title="Xr">lua_dump(3)</a> from calling the
+  writer again.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <var class="Vt" title="Vt">lua_Writer</var> manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 18, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + e02f2dcea2807d938a591213c56e0d3ca33375af (mode 644)
--- /dev/null
+++ lua_atpanic.3
@@ -0,0 +1,33 @@
+.Dd $Mdocdate: July 14 2022 $
+.Dt LUA_ATPANIC 3
+.Os
+.Sh NAME
+.Nm lua_atpanic
+.Nd sets a new panic function and returns the old one
+.Sh SYNOPSIS
+.In lua.h
+.Ft lua_CFunction
+.Fn lua_atpanic "lua_State *L" "lua_CFunction panicf"
+.Sh DESCRIPTION
+.Fn lua_atpanic
+sets a new panic function and returns the old one.
+.Pp
+If an error happens outside any protected environment, Lua calls a panic
+function and then calls
+.Em exit(EXIT_FAILURE) ,
+thus exiting the host application.
+Your panic function can avoid this exit by never returning (e.g., doing a long
+jump).
+.Pp
+The panic function can access the error message at the top of the stack.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_atpanic
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + b6dc11ee668a7301759f5c8b0170798b2073a4ab (mode 644)
--- /dev/null
+++ lua_atpanic.3.html
@@ -0,0 +1,57 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_ATPANIC(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_ATPANIC(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_ATPANIC(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_atpanic</code> &#x2014;
+<div class="Nd" title="Nd">sets a new panic function and returns the old
+  one</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">lua_CFunction</var>
+<br/>
+<code class="Fn" title="Fn">lua_atpanic</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">lua_CFunction
+  panicf</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_atpanic</code>() sets a new panic function and
+  returns the old one.
+<div class="Pp"></div>
+If an error happens outside any protected environment, Lua calls a panic
+  function and then calls <i class="Em" title="Em">exit(EXIT_FAILURE)</i>, thus
+  exiting the host application. Your panic function can avoid this exit by never
+  returning (e.g., doing a long jump).
+<div class="Pp"></div>
+The panic function can access the error message at the top of the stack.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_atpanic</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 14, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + f8f32c7655810914ee250b27513e838b5a8b4888 (mode 644)
--- /dev/null
+++ lua_call.3
@@ -0,0 +1,68 @@
+.Dd $Mdocdate: July 19 2022 $
+.Dt LUA_CALL 3
+.Os
+.Sh NAME
+.Nm lua_call
+.Nd calls a function
+.Sh SYNOPSIS
+.In lua.h
+.Ft void
+.Fn lua_call "lua_State *L" "int nargs" "int nresults"
+.Sh DESCRIPTION
+.Fn lua_call
+calls a function.
+.Pp
+To call a function you must use the following protocol: first, the function to
+be called is pushed onto the stack; then, the arguments to the function are
+pushed in direct order; that is, the first argument is pushed first.
+Finally you call
+.Nm lua_call ;
+.Fa nargs
+is the number of arguments that you pushed onto the stack.
+All arguments and the function value are popped from the stack when the
+function is called.
+The function results are pushed onto the stack when the function returns.
+The number of results is adjusted to nresults, unless nresults is
+.Dv LUA_MULTRET .
+In this case, all results from the function are pushed.
+Lua takes care that the returned values fit into the stack space.
+The function results are pushed onto the stack in direct order (the first
+result is pushed first), so that after the call the last result is on the top
+of the stack.
+.Pp
+Any error inside the called function is propagated upwards (with a longjmp).
+.Pp
+The following example shows how the host program can do the equivalent to this
+Lua code:
+.Pp
+.Bd -literal -offset indent -compact
+a = f("how", t.x, 14)
+.Ed
+.Pp
+Here it is in C:
+.Pp
+.Bd -literal -offset indent -compact
+lua_getfield(L, LUA_GLOBALSINDEX, "f"); /* function to be called */
+lua_pushstring(L, "how");                        /* 1st argument */
+lua_getfield(L, LUA_GLOBALSINDEX, "t");   /* table to be indexed */
+lua_getfield(L, -1, "x");        /* push result of t.x (2nd arg) */
+lua_remove(L, -2);                  /* remove 't' from the stack */
+lua_pushinteger(L, 14);                          /* 3rd argument */
+lua_call(L, 3, 1);     /* call 'f' with 3 arguments and 1 result */
+lua_setfield(L, LUA_GLOBALSINDEX, "a");        /* set global 'a' */
+.Ed
+.Pp
+Note that the code above is "balanced": at its end, the stack is back to its
+original configuration.
+This is considered good programming practice.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_call
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 47a768503ae52150c4798545917265972bf38249 (mode 644)
--- /dev/null
+++ lua_call.3.html
@@ -0,0 +1,91 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_CALL(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_CALL(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_CALL(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_call</code> &#x2014;
+<div class="Nd" title="Nd">calls a function</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">lua_call</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  nargs</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  nresults</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_call</code>() calls a function.
+<div class="Pp"></div>
+To call a function you must use the following protocol: first, the function to
+  be called is pushed onto the stack; then, the arguments to the function are
+  pushed in direct order; that is, the first argument is pushed first. Finally
+  you call <code class="Nm" title="Nm">lua_call</code>;
+  <var class="Fa" title="Fa">nargs</var> is the number of arguments that you
+  pushed onto the stack. All arguments and the function value are popped from
+  the stack when the function is called. The function results are pushed onto
+  the stack when the function returns. The number of results is adjusted to
+  nresults, unless nresults is <code class="Dv" title="Dv">LUA_MULTRET</code>.
+  In this case, all results from the function are pushed. Lua takes care that
+  the returned values fit into the stack space. The function results are pushed
+  onto the stack in direct order (the first result is pushed first), so that
+  after the call the last result is on the top of the stack.
+<div class="Pp"></div>
+Any error inside the called function is propagated upwards (with a longjmp).
+<div class="Pp"></div>
+The following example shows how the host program can do the equivalent to this
+  Lua code:
+<div class="Pp"></div>
+<div class="Bd Bd-indent">
+<pre class="Li">
+a = f(&quot;how&quot;, t.x, 14)
+</pre>
+</div>
+<div class="Pp"></div>
+Here it is in C:
+<div class="Pp"></div>
+<div class="Bd Bd-indent">
+<pre class="Li">
+lua_getfield(L, LUA_GLOBALSINDEX, &quot;f&quot;); /* function to be called */ 
+lua_pushstring(L, &quot;how&quot;);                        /* 1st argument */ 
+lua_getfield(L, LUA_GLOBALSINDEX, &quot;t&quot;);   /* table to be indexed */ 
+lua_getfield(L, -1, &quot;x&quot;);        /* push result of t.x (2nd arg) */ 
+lua_remove(L, -2);                  /* remove 't' from the stack */ 
+lua_pushinteger(L, 14);                          /* 3rd argument */ 
+lua_call(L, 3, 1);     /* call 'f' with 3 arguments and 1 result */ 
+lua_setfield(L, LUA_GLOBALSINDEX, &quot;a&quot;);        /* set global 'a' */
+</pre>
+</div>
+<div class="Pp"></div>
+Note that the code above is &quot;balanced&quot;: at its end, the stack is back
+  to its original configuration. This is considered good programming practice.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_call</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 19, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 8fe8b3ffd205f66f986b5c3ad45fe8d8008d290e (mode 644)
--- /dev/null
+++ lua_checkstack.3
@@ -0,0 +1,27 @@
+.Dd $Mdocdate: July 14 2022 $
+.Dt LUA_CHECKSTACK 3
+.Os
+.Sh NAME
+.Nm lua_checkstack
+.Nd ensures that there are at least extra free stack slots in the stack
+.Sh SYNOPSIS
+.In lua.h
+.Ft int
+.Fn lua_checkstack "lua_State *L" "int extra"
+.Sh DESCRIPTION
+.Fn lua_checkstack
+ensures that there are at least extra free stack slots in the stack.
+It returns false if it cannot grow the stack to that size.
+This function never shrinks the stack; if the stack is already larger than the
+new size, it is left unchanged.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_checkstack
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + a7fdebeb02aba577bb93d9d31aa6f8d0cea89eb4 (mode 644)
--- /dev/null
+++ lua_checkstack.3.html
@@ -0,0 +1,51 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_CHECKSTACK(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_CHECKSTACK(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_CHECKSTACK(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_checkstack</code> &#x2014;
+<div class="Nd" title="Nd">ensures that there are at least extra free stack
+  slots in the stack</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">lua_checkstack</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  extra</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_checkstack</code>() ensures that there are at
+  least extra free stack slots in the stack. It returns false if it cannot grow
+  the stack to that size. This function never shrinks the stack; if the stack is
+  already larger than the new size, it is left unchanged.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_checkstack</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 14, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 43d1bb648bd3428647541b08f2fe546de517d8b9 (mode 644)
--- /dev/null
+++ lua_close.3
@@ -0,0 +1,27 @@
+.Dd $Mdocdate: July 14 2022 $
+.Dt LUA_CLOSE 3
+.Os
+.Sh NAME
+.Nm lua_close
+.Nd ensures that there are at least extra free stack slots in the stack
+.Sh SYNOPSIS
+.In lua.h
+.Ft void
+.Fn lua_close "lua_State *L"
+.Sh DESCRIPTION
+.Fn lua_close
+ensures that there are at least extra free stack slots in the stack.
+It returns false if it cannot grow the stack to that size.
+This function never shrinks the stack; if the stack is already larger than the
+new size, it is left unchanged.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_close
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 68b1806d2df96c352c14b6d51ab16b410543f829 (mode 644)
--- /dev/null
+++ lua_close.3.html
@@ -0,0 +1,50 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_CLOSE(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_CLOSE(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_CLOSE(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_close</code> &#x2014;
+<div class="Nd" title="Nd">ensures that there are at least extra free stack
+  slots in the stack</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">lua_close</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_close</code>() ensures that there are at least
+  extra free stack slots in the stack. It returns false if it cannot grow the
+  stack to that size. This function never shrinks the stack; if the stack is
+  already larger than the new size, it is left unchanged.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_close</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 14, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + c7d284ff8c07d87c03ce7a10635e76dbfb16a598 (mode 644)
--- /dev/null
+++ lua_concat.3
@@ -0,0 +1,37 @@
+.Dd $Mdocdate: July 14 2022 $
+.Dt LUA_CONCAT 3
+.Os
+.Sh NAME
+.Nm lua_concat
+.Nd concatenates the values at the top of the stack, pops them, and leaves the
+result at the top
+.Sh SYNOPSIS
+.In lua.h
+.Ft void
+.Fn lua_concat "lua_State *L" "int n"
+.Sh DESCRIPTION
+.Fn lua_concat
+concatenates the
+.Fa n
+values at the top of the stack, pops them, and leaves the
+result at the top.
+Concatenation is performed following the
+usual semantics of Lua.
+.Sh RETURN VALUES
+If
+.Fa n
+is 1, the result is the single value on the stack (that
+is, the function does nothing); if
+.Fa n
+is 0, the result is the empty string.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_concat
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 947925929b0a9197c1ac852e5157cea78fc20288 (mode 644)
--- /dev/null
+++ lua_concat.3.html
@@ -0,0 +1,56 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_CONCAT(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_CONCAT(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_CONCAT(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_concat</code> &#x2014;
+<div class="Nd" title="Nd">concatenates the values at the top of the stack, pops
+  them, and leaves the result at the top</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">lua_concat</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  n</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_concat</code>() concatenates the
+  <var class="Fa" title="Fa">n</var> values at the top of the stack, pops them,
+  and leaves the result at the top. Concatenation is performed following the
+  usual semantics of Lua.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+If <var class="Fa" title="Fa">n</var> is 1, the result is the single value on
+  the stack (that is, the function does nothing); if
+  <var class="Fa" title="Fa">n</var> is 0, the result is the empty string.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_concat</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 14, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + b34af570cfe94bf90cd468a8dd26177c9dd7f2a5 (mode 644)
--- /dev/null
+++ lua_cpcall.3
@@ -0,0 +1,40 @@
+.Dd $Mdocdate: July 14 2022 $
+.Dt LUA_CPCALL 3
+.Os
+.Sh NAME
+.Nm lua_cpcall
+.Nd calls the C function in protected mode
+.Sh SYNOPSIS
+.In lua.h
+.Ft int
+.Fn lua_cpcall "lua_State *L" "lua_CFunction func" "void *ud"
+.Sh DESCRIPTION
+.Fn lua_cpcall
+calls the C function
+.Fa func
+in protected mode.
+.Fa func
+starts with only one element in its stack, a light userdata containing
+.Fa ud .
+.Sh RETURN VALUES
+In case of errors,
+.Fn lua_cpcall
+returns the same error codes as
+.Xr lua_pcall 3 ,
+plus the error object on the top of the stack; otherwise, it returns zero, and
+does not change the stack.
+All values returned by
+.Fa func
+are discarded.
+.Sh SEE ALSO
+.Xr lua_pcall 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_cpcall
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 458443985b920ff03ed8b111397796ec2998defe (mode 644)
--- /dev/null
+++ lua_cpcall.3.html
@@ -0,0 +1,61 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_CPCALL(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_CPCALL(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_CPCALL(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_cpcall</code> &#x2014;
+<div class="Nd" title="Nd">calls the C function in protected mode</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">lua_cpcall</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">lua_CFunction
+  func</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">void
+  *ud</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_cpcall</code>() calls the C function
+  <var class="Fa" title="Fa">func</var> in protected mode.
+  <var class="Fa" title="Fa">func</var> starts with only one element in its
+  stack, a light userdata containing <var class="Fa" title="Fa">ud</var>.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+In case of errors, <code class="Fn" title="Fn">lua_cpcall</code>() returns the
+  same error codes as <a class="Xr" title="Xr">lua_pcall(3)</a>, plus the error
+  object on the top of the stack; otherwise, it returns zero, and does not
+  change the stack. All values returned by <var class="Fa" title="Fa">func</var>
+  are discarded.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">lua_pcall(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_cpcall</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 14, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 59d340427446afacc99be9ae907283636aaaa07c (mode 644)
--- /dev/null
+++ lua_createtable.3
@@ -0,0 +1,34 @@
+.Dd $Mdocdate: July 14 2022 $
+.Dt LUA_CREATETABLE 3
+.Os
+.Sh NAME
+.Nm lua_createtable
+.Nd creates a new empty table and pushes it onto the stack
+.Sh SYNOPSIS
+.In lua.h
+.Ft void
+.Fn lua_createtable "lua_State *L" "int narr" "int nrec"
+.Sh DESCRIPTION
+.Fn lua_createtable
+creates a new empty table and pushes it onto the stack.
+The new table has space pre-allocated for
+.Fa narr
+array elements and
+.Fa nrec
+non-array elements.
+This pre-allocation is useful when you know exactly how many elements the table
+will have.
+Otherwise you can use the function
+.Xr lua_newtable 3 .
+.Sh SEE ALSO
+.Xr lua_newtable 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_createtable
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + d5d73720b906c1ce9393fd47c0d5eb7c7faac4c4 (mode 644)
--- /dev/null
+++ lua_createtable.3.html
@@ -0,0 +1,57 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_CREATETABLE(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_CREATETABLE(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_CREATETABLE(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_createtable</code> &#x2014;
+<div class="Nd" title="Nd">creates a new empty table and pushes it onto the
+  stack</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">lua_createtable</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  narr</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  nrec</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_createtable</code>() creates a new empty table
+  and pushes it onto the stack. The new table has space pre-allocated for
+  <var class="Fa" title="Fa">narr</var> array elements and
+  <var class="Fa" title="Fa">nrec</var> non-array elements. This pre-allocation
+  is useful when you know exactly how many elements the table will have.
+  Otherwise you can use the function
+  <a class="Xr" title="Xr">lua_newtable(3)</a>.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">lua_newtable(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_createtable</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 14, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 4c8349a1b835be6d393def9d920ef485700fafbf (mode 644)
--- /dev/null
+++ lua_dump.3
@@ -0,0 +1,37 @@
+.Dd $Mdocdate: July 14 2022 $
+.Dt LUA_DUMP 3
+.Os
+.Sh NAME
+.Nm lua_dump
+.Nd dumps a function as a binary chunk
+.Sh SYNOPSIS
+.In lua.h
+.Ft int
+.Fn lua_dump "lua_State *L" "lua_Writer writer" "void *data"
+.Sh DESCRIPTION
+.Fn lua_dump
+dumps a function as a binary chunk.
+Receives a Lua function on the top of the stack and produces a binary chunk
+that, if loaded again, results in a function equivalent to the one dumped.
+As it produces parts of the chunk,
+.Fn lua_dump
+calls function writer (see
+.Xr lua_Writer 3 )
+with the given data to write them.
+.Pp
+This function does not pop the Lua function from the stack.
+.Sh RETURN VALUES
+The value returned is the error code returned by the last call to the writer; 0
+means no errors.
+.Sh SEE ALSO
+.Xr lua_Writer 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_dump
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + fc19a34767ec9b68b80e9c120804325fa2a7f170 (mode 644)
--- /dev/null
+++ lua_dump.3.html
@@ -0,0 +1,61 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_DUMP(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_DUMP(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_DUMP(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_dump</code> &#x2014;
+<div class="Nd" title="Nd">dumps a function as a binary chunk</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">lua_dump</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">lua_Writer
+  writer</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">void
+  *data</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_dump</code>() dumps a function as a binary
+  chunk. Receives a Lua function on the top of the stack and produces a binary
+  chunk that, if loaded again, results in a function equivalent to the one
+  dumped. As it produces parts of the chunk,
+  <code class="Fn" title="Fn">lua_dump</code>() calls function writer (see
+  <a class="Xr" title="Xr">lua_Writer(3)</a>) with the given data to write them.
+<div class="Pp"></div>
+This function does not pop the Lua function from the stack.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+The value returned is the error code returned by the last call to the writer; 0
+  means no errors.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">lua_Writer(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_dump</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 14, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + b95a856b7c53a7c399a406e54081f69815f450a4 (mode 644)
--- /dev/null
+++ lua_equal.3
@@ -0,0 +1,32 @@
+.Dd $Mdocdate: July 14 2022 $
+.Dt LUA_EQUAL 3
+.Os
+.Sh NAME
+.Nm lua_equal
+.Nd compare two values for equality
+.Sh SYNOPSIS
+.In lua.h
+.Ft int
+.Fn lua_equal "lua_State *L" "int index1" "int index2"
+.Sh DESCRIPTION
+.Fn lua_equal
+.Sh RETURN VALUES
+Returns 1 if the two values in acceptable indices
+.Fa index1
+and
+.Fa index2
+are equal, following the semantics of the Lua
+.Em ==
+operator (that is, may call metamethods).
+Otherwise returns 0. Also returns 0 if any of the indices is non valid.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_equal
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + de32c2c76b8f9e24e6098aee55789e869522ef8c (mode 644)
--- /dev/null
+++ lua_equal.3.html
@@ -0,0 +1,56 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_EQUAL(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_EQUAL(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_EQUAL(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_equal</code> &#x2014;
+<div class="Nd" title="Nd">compare two values for equality</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">lua_equal</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index1</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index2</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_equal</code>()
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+Returns 1 if the two values in acceptable indices
+  <var class="Fa" title="Fa">index1</var> and
+  <var class="Fa" title="Fa">index2</var> are equal, following the semantics of
+  the Lua <i class="Em" title="Em">==</i> operator (that is, may call
+  metamethods). Otherwise returns 0. Also returns 0 if any of the indices is non
+  valid.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_equal</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 14, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 4280d878af688b2d681405306bb76eb29c15e2eb (mode 644)
--- /dev/null
+++ lua_error.3
@@ -0,0 +1,29 @@
+.Dd $Mdocdate: July 14 2022 $
+.Dt LUA_ERROR 3
+.Os
+.Sh NAME
+.Nm lua_error
+.Nd generates a Lua error
+.Sh SYNOPSIS
+.In lua.h
+.Ft int
+.Fn lua_error "lua_State *L"
+.Sh DESCRIPTION
+.Fn lua_error
+generates a Lua error.
+The error message (which can actually be a Lua value of any type) must be on
+the stack top.
+.Sh RETURN VALUES
+This function does a long jump, and therefore never returns.
+.Sh SEE ALSO
+.Xr luaL_error 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn luaL_error
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 215c608ad3ec3471a6abd3759b6eca24a92f49f3 (mode 644)
--- /dev/null
+++ lua_error.3.html
@@ -0,0 +1,53 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_ERROR(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_ERROR(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_ERROR(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_error</code> &#x2014;
+<div class="Nd" title="Nd">generates a Lua error</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">lua_error</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_error</code>() generates a Lua error. The error
+  message (which can actually be a Lua value of any type) must be on the stack
+  top.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+This function does a long jump, and therefore never returns.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">luaL_error(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">luaL_error</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 14, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 3546f12f608065ff8603cd5698265bca6f7050ee (mode 644)
--- /dev/null
+++ lua_gc.3
@@ -0,0 +1,54 @@
+.Dd $Mdocdate: July 18 2022 $
+.Dt LUA_GC 3
+.Os
+.Sh NAME
+.Nm lua_gc
+.Nd controls the garbage collector
+.Sh SYNOPSIS
+.In lua.h
+.Ft int
+.Fn lua_gc "lua_State *L" "int what" "int data"
+.Sh DESCRIPTION
+.Fn lua_gc
+controls the garbage collector.
+.Pp
+This function performs several tasks, according to the value of the parameter
+what:
+.Pp
+.Bl -tag -width LUA_GCSETSTEPMUL -offset indent -compact
+.It Dv LUA_GCSTOP :
+stops the garbage collector.
+.It Dv LUA_GCRESTART :
+restarts the garbage collector.
+.It Dv LUA_GCCOLLECT :
+performs a full garbage-collection cycle.
+.It Dv LUA_GCCOUNT :
+returns the current amount of memory (in Kbytes) in use by Lua.
+.It Dv LUA_GCCOUNTB :
+returns the remainder of dividing the current amount of bytes of memory in use
+by Lua by 1024.
+.It Dv LUA_GCSTEP :
+performs an incremental step of garbage collection.
+The step "size" is controlled by data (larger values mean more steps) in a
+non-specified way.
+If you want to control the step size you must experimentally tune the value of
+data.
+The function returns 1 if the step finished a garbage-collection cycle.
+.It Dv LUA_GCSETPAUSE :
+sets data as the new value for the pause of the collector.
+The function returns the previous value of the pause.
+.It Dv LUA_GCSETSTEPMUL :
+sets data as the new value for the step multiplier of the collector.
+The function returns the previous value of the step multiplier.
+.El
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_gc
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + de4074efa11f156d5d7f4f1ff62ea451706dccbb (mode 644)
--- /dev/null
+++ lua_gc.3.html
@@ -0,0 +1,79 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_GC(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_GC(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_GC(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_gc</code> &#x2014;
+<div class="Nd" title="Nd">controls the garbage collector</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">lua_gc</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  what</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  data</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_gc</code>() controls the garbage collector.
+<div class="Pp"></div>
+This function performs several tasks, according to the value of the parameter
+  what:
+<div class="Pp"></div>
+<div class="Bd-indent">
+<dl class="Bl-tag Bl-compact">
+  <dt><a class="permalink" href="#LUA_GCSTOP"><code class="Dv" title="Dv" id="LUA_GCSTOP">LUA_GCSTOP</code></a>:</dt>
+  <dd>stops the garbage collector.</dd>
+  <dt><a class="permalink" href="#LUA_GCRESTART"><code class="Dv" title="Dv" id="LUA_GCRESTART">LUA_GCRESTART</code></a>:</dt>
+  <dd>restarts the garbage collector.</dd>
+  <dt><a class="permalink" href="#LUA_GCCOLLECT"><code class="Dv" title="Dv" id="LUA_GCCOLLECT">LUA_GCCOLLECT</code></a>:</dt>
+  <dd>performs a full garbage-collection cycle.</dd>
+  <dt><a class="permalink" href="#LUA_GCCOUNT"><code class="Dv" title="Dv" id="LUA_GCCOUNT">LUA_GCCOUNT</code></a>:</dt>
+  <dd>returns the current amount of memory (in Kbytes) in use by Lua.</dd>
+  <dt><a class="permalink" href="#LUA_GCCOUNTB"><code class="Dv" title="Dv" id="LUA_GCCOUNTB">LUA_GCCOUNTB</code></a>:</dt>
+  <dd>returns the remainder of dividing the current amount of bytes of memory in
+      use by Lua by 1024.</dd>
+  <dt><a class="permalink" href="#LUA_GCSTEP"><code class="Dv" title="Dv" id="LUA_GCSTEP">LUA_GCSTEP</code></a>:</dt>
+  <dd>performs an incremental step of garbage collection. The step
+      &quot;size&quot; is controlled by data (larger values mean more steps) in
+      a non-specified way. If you want to control the step size you must
+      experimentally tune the value of data. The function returns 1 if the step
+      finished a garbage-collection cycle.</dd>
+  <dt><a class="permalink" href="#LUA_GCSETPAUSE"><code class="Dv" title="Dv" id="LUA_GCSETPAUSE">LUA_GCSETPAUSE</code></a>:</dt>
+  <dd>sets data as the new value for the pause of the collector. The function
+      returns the previous value of the pause.</dd>
+  <dt><a class="permalink" href="#LUA_GCSETSTEPMUL"><code class="Dv" title="Dv" id="LUA_GCSETSTEPMUL">LUA_GCSETSTEPMUL</code></a>:</dt>
+  <dd>sets data as the new value for the step multiplier of the collector. The
+      function returns the previous value of the step multiplier.</dd>
+</dl>
+</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_gc</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 18, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 7c348ff7bbdda8e9cb08d1c8e0f7c69b00989970 (mode 644)
--- /dev/null
+++ lua_getallocf.3
@@ -0,0 +1,34 @@
+.Dd $Mdocdate: July 14 2022 $
+.Dt LUA_GETALLOCF 3
+.Os
+.Sh NAME
+.Nm lua_getallocf
+.Nd returns the memory-allocation function of a given state
+.Sh SYNOPSIS
+.In lua.h
+.Ft lua_Alloc
+.Fn lua_getallocf "lua_State *L" "void **ud"
+.Sh DESCRIPTION
+.Fn lua_getallocf
+returns the memory-allocation function of a given state.
+.Sh RETURN VALUES
+If
+.Fa ud
+is not
+.Dv NULL ,
+Lua stores in
+.Fa *ud
+the opaque pointer passed to
+.Xr lua_newstate 3 .
+.Sh SEE ALSO
+.Xr lua_newstate 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_getallocf
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + ebd44b4d4f039b6862f6a3c03fff20bc5e4e09da (mode 644)
--- /dev/null
+++ lua_getallocf.3.html
@@ -0,0 +1,57 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_GETALLOCF(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_GETALLOCF(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_GETALLOCF(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_getallocf</code> &#x2014;
+<div class="Nd" title="Nd">returns the memory-allocation function of a given
+  state</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">lua_Alloc</var>
+<br/>
+<code class="Fn" title="Fn">lua_getallocf</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">void
+  **ud</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_getallocf</code>() returns the memory-allocation
+  function of a given state.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+If <var class="Fa" title="Fa">ud</var> is not
+  <code class="Dv" title="Dv">NULL</code>, Lua stores in
+  <var class="Fa" title="Fa">*ud</var> the opaque pointer passed to
+  <a class="Xr" title="Xr">lua_newstate(3)</a>.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">lua_newstate(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_getallocf</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 14, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + e3bbc2efc6bbef3e6e80739e8241b99a431694e8 (mode 644)
--- /dev/null
+++ lua_getfenv.3
@@ -0,0 +1,24 @@
+.Dd $Mdocdate: July 14 2022 $
+.Dt LUA_GETFENV 3
+.Os
+.Sh NAME
+.Nm lua_getfenv
+.Nd pushes onto the stack the environment table of the value at the given index
+.Sh SYNOPSIS
+.In lua.h
+.Ft void
+.Fn lua_getfenv "lua_State *L" "int index"
+.Sh DESCRIPTION
+.Fn lua_getfenv
+pushes onto the stack the environment table of the value at the given index.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_getfenv
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 4aed2ea83f0217c18d85dfbb9e2d699d4a927fce (mode 644)
--- /dev/null
+++ lua_getfenv.3.html
@@ -0,0 +1,49 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_GETFENV(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_GETFENV(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_GETFENV(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_getfenv</code> &#x2014;
+<div class="Nd" title="Nd">pushes onto the stack the environment table of the
+  value at the given index</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">lua_getfenv</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_getfenv</code>() pushes onto the stack the
+  environment table of the value at the given index.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_getfenv</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 14, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 3727ded3cb58f444fdc3bfdf2885ba171863c1d9 (mode 644)
--- /dev/null
+++ lua_getfield.3
@@ -0,0 +1,28 @@
+.Dd $Mdocdate: July 14 2022 $
+.Dt LUA_GETFIELD 3
+.Os
+.Sh NAME
+.Nm lua_getfield
+.Nd pushes onto the stack the value t[k], where t is the value at the given valid index
+.Sh SYNOPSIS
+.In lua.h
+.Ft void
+.Fn lua_getfield "lua_State *L" "int index" "const char *k"
+.Sh DESCRIPTION
+.Fn lua_getfield
+pushes onto the stack the value t[k], where t is the value at the given valid
+index.
+As in Lua, this function may trigger a metamethod for the
+.Qq index
+event.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_getfield
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 2d975a9f8311db2f9f4ead996dd494df4bb4b14f (mode 644)
--- /dev/null
+++ lua_getfield.3.html
@@ -0,0 +1,51 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_GETFIELD(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_GETFIELD(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_GETFIELD(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_getfield</code> &#x2014;
+<div class="Nd" title="Nd">pushes onto the stack the value t[k], where t is the
+  value at the given valid index</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">lua_getfield</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const
+  char *k</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_getfield</code>() pushes onto the stack the
+  value t[k], where t is the value at the given valid index. As in Lua, this
+  function may trigger a metamethod for the &#x201C;index&#x201D; event.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_getfield</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 14, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + f72a7c976c731b526a65422e05d4793f59519d06 (mode 644)
--- /dev/null
+++ lua_getglobal.3
@@ -0,0 +1,27 @@
+.Dd $Mdocdate: July 19 2022 $
+.Dt LUA_GETGLOBAL 3
+.Os
+.Sh NAME
+.Nm lua_getglobal
+.Nd pushes onto the stack the value of the global name
+.Sh SYNOPSIS
+.In lua.h
+.Ft void
+.Fn lua_getglobal "lua_State *L" "const char *name"
+.Sh DESCRIPTION
+.Fn lua_getglobal
+pushes onto the stack the value of the global name.
+It is defined as a macro:
+.Pp
+.Fd #define lua_getglobal(L,s)  lua_getfield(L, LUA_GLOBALSINDEX, s)
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_getglobal
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 1f8ff9f72b36b66f8bb553fedcad0017833d1bdd (mode 644)
--- /dev/null
+++ lua_getglobal.3.html
@@ -0,0 +1,52 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_GETGLOBAL(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_GETGLOBAL(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_GETGLOBAL(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_getglobal</code> &#x2014;
+<div class="Nd" title="Nd">pushes onto the stack the value of the global
+  name</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">lua_getglobal</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const char
+  *name</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_getglobal</code>() pushes onto the stack the
+  value of the global name. It is defined as a macro:
+<div class="Pp"></div>
+<code class="Fd" title="Fd">#define lua_getglobal(L,s) lua_getfield(L,
+  LUA_GLOBALSINDEX, s)</code>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_getglobal</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 19, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 9fc0d5e31247fafbb1b88cc6fee0538786b42890 (mode 644)
--- /dev/null
+++ lua_gethook.3
@@ -0,0 +1,26 @@
+.Dd $Mdocdate: July 13 2022 $
+.Dt LUA_GETHOOK 3
+.Os
+.Sh NAME
+.Nm lua_gethook
+.Nd returns the current hook function
+.Sh SYNOPSIS
+.In lua.h
+.Ft lua_Hook
+.Fn lua_gethook "lua_State *L"
+.Sh DESCRIPTION
+.Fn lua_gethook
+returns the current hook function.
+.Sh RETURN VALUES
+Returns the current hook function.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_gethook
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + d60549a47e88e352fec7358501377cea6dc773ff (mode 644)
--- /dev/null
+++ lua_gethook.3.html
@@ -0,0 +1,50 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_GETHOOK(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_GETHOOK(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_GETHOOK(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_gethook</code> &#x2014;
+<div class="Nd" title="Nd">returns the current hook function</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">lua_Hook</var>
+<br/>
+<code class="Fn" title="Fn">lua_gethook</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_gethook</code>() returns the current hook
+  function.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+Returns the current hook function.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_gethook</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 13, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + d9429750b76735aa7e0b7c604b5c9c6916284b2a (mode 644)
--- /dev/null
+++ lua_gethookcount.3
@@ -0,0 +1,26 @@
+.Dd $Mdocdate: July 13 2022 $
+.Dt LUA_GETHOOKCOUNT 3
+.Os
+.Sh NAME
+.Nm lua_gethookcount
+.Nd returns the current hook count
+.Sh SYNOPSIS
+.In lua.h
+.Ft int
+.Fn lua_gethookcount "lua_State *L"
+.Sh DESCRIPTION
+.Fn lua_gethookmask
+returns the current hook count.
+.Sh RETURN VALUES
+Returns the current hook count.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_gethookcount
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 5545522c77e7d96a67167cd7605f75e462a7fbc2 (mode 644)
--- /dev/null
+++ lua_gethookcount.3.html
@@ -0,0 +1,50 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_GETHOOKCOUNT(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_GETHOOKCOUNT(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_GETHOOKCOUNT(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_gethookcount</code> &#x2014;
+<div class="Nd" title="Nd">returns the current hook count</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">lua_gethookcount</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_gethookmask</code>() returns the current hook
+  count.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+Returns the current hook count.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_gethookcount</code>() manual page was
+  written by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 13, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 26852c63f5120a59bfcf6c9ef0714cade336e977 (mode 644)
--- /dev/null
+++ lua_gethookmask.3
@@ -0,0 +1,26 @@
+.Dd $Mdocdate: July 13 2022 $
+.Dt LUA_GETHOOKMASK 3
+.Os
+.Sh NAME
+.Nm lua_gethookmask
+.Nd returns the current hook mask
+.Sh SYNOPSIS
+.In lua.h
+.Ft int
+.Fn lua_gethookmask "lua_State *L"
+.Sh DESCRIPTION
+.Fn lua_gethookmask
+returns the current hook mask.
+.Sh RETURN VALUES
+Returns the current hook mask.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_gethookmask
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 79efa13251b5297c85310561e4ec83d1aa7daf23 (mode 644)
--- /dev/null
+++ lua_gethookmask.3.html
@@ -0,0 +1,50 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_GETHOOKMASK(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_GETHOOKMASK(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_GETHOOKMASK(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_gethookmask</code> &#x2014;
+<div class="Nd" title="Nd">returns the current hook mask</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">lua_gethookmask</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_gethookmask</code>() returns the current hook
+  mask.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+Returns the current hook mask.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_gethookmask</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 13, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + a9536a1077d27f3edf9b0eb4bb2b567512aaefcd (mode 644)
--- /dev/null
+++ lua_getinfo.3
@@ -0,0 +1,69 @@
+.Dd $Mdocdate: July 19 2022 $
+.Dt LUA_GETINFO 3
+.Os
+.Sh NAME
+.Nm lua_getinfo
+.Nd returns information about a specific function or function invocation
+.Sh SYNOPSIS
+.In lua.h
+.Ft int
+.Fn lua_getinfo "lua_State *L" "const char *what" "lua_Debug *ar"
+.Sh DESCRIPTION
+.Fn lua_getinfo
+returns information about a specific function or function invocation.
+.Pp
+To get information about a function invocation, the parameter ar must be a
+valid activation record that was filled by a previous call to lua_getstack or
+given as argument to a hook
+.Pq see Xr lua_Hook 3 .
+.Pp
+To get information about a function you push it onto the stack and start the
+what string with the character '>'.
+(In that case,
+.Nm lua_getinfo
+pops the function in the top of the stack.)
+For instance, to know in which line a function
+.Fa f
+was defined, you can write the following code:
+.Pp
+.Bd -literal -offset indent -compact
+lua_Debug ar;
+lua_getfield(L, LUA_GLOBALSINDEX, "f");  /* get global 'f' */
+lua_getinfo(L, ">S", &ar);
+printf("%d\n", ar.linedefined);
+.Ed
+.Pp
+Each character in the string what selects some fields of the structure ar to be
+filled or a value to be pushed on the stack:
+.Pp
+.Bl -tag -width 'L' -compact
+.It Sy 'n'
+fills in the field name and namewhat;
+.It Sy 'S'
+fills in the fields source, short_src, linedefined, lastlinedefined, and what;
+.It Sy 'l'
+fills in the field currentline;
+.It Sy 'u'
+fills in the field nups;
+.It Sy 'f'
+pushes onto the stack the function that is running at the given level;
+.It Sy 'L'
+pushes onto the stack a table whose indices are the numbers of the lines that
+are valid on the function.
+(A valid line is a line with some associated code, that is, a line where you
+can put a break point.
+Non-valid lines include empty lines and comments.)
+This function returns 0 on error (for instance, an invalid option in what).
+.El
+.Sh SEE ALSO
+.Xr lua_Hook 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_getinfo
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 5878650304f5294eff16e9f68ffc4a45c882e3df (mode 644)
--- /dev/null
+++ lua_getinfo.3.html
@@ -0,0 +1,96 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_GETINFO(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_GETINFO(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_GETINFO(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_getinfo</code> &#x2014;
+<div class="Nd" title="Nd">returns information about a specific function or
+  function invocation</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">lua_getinfo</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const char
+  *what</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">lua_Debug
+  *ar</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_getinfo</code>() returns information about a
+  specific function or function invocation.
+<div class="Pp"></div>
+To get information about a function invocation, the parameter ar must be a valid
+  activation record that was filled by a previous call to lua_getstack or given
+  as argument to a hook (see <a class="Xr" title="Xr">lua_Hook(3)</a>).
+<div class="Pp"></div>
+To get information about a function you push it onto the stack and start the
+  what string with the character '&gt;'. (In that case,
+  <code class="Nm" title="Nm">lua_getinfo</code> pops the function in the top of
+  the stack.) For instance, to know in which line a function
+  <var class="Fa" title="Fa">f</var> was defined, you can write the following
+  code:
+<div class="Pp"></div>
+<div class="Bd Bd-indent">
+<pre class="Li">
+lua_Debug ar; 
+lua_getfield(L, LUA_GLOBALSINDEX, &quot;f&quot;);  /* get global 'f' */ 
+lua_getinfo(L, &quot;&gt;S&quot;, &amp;ar); 
+printf(&quot;%d0, ar.linedefined);
+</pre>
+</div>
+<div class="Pp"></div>
+Each character in the string what selects some fields of the structure ar to be
+  filled or a value to be pushed on the stack:
+<div class="Pp"></div>
+<dl class="Bl-tag Bl-compact">
+  <dt><b class="Sy" title="Sy">'n'</b></dt>
+  <dd>fills in the field name and namewhat;</dd>
+  <dt><b class="Sy" title="Sy">'S'</b></dt>
+  <dd>fills in the fields source, short_src, linedefined, lastlinedefined, and
+      what;</dd>
+  <dt><b class="Sy" title="Sy">'l'</b></dt>
+  <dd>fills in the field currentline;</dd>
+  <dt><b class="Sy" title="Sy">'u'</b></dt>
+  <dd>fills in the field nups;</dd>
+  <dt><b class="Sy" title="Sy">'f'</b></dt>
+  <dd>pushes onto the stack the function that is running at the given
+    level;</dd>
+  <dt><b class="Sy" title="Sy">'L'</b></dt>
+  <dd>pushes onto the stack a table whose indices are the numbers of the lines
+      that are valid on the function. (A valid line is a line with some
+      associated code, that is, a line where you can put a break point.
+      Non-valid lines include empty lines and comments.) This function returns 0
+      on error (for instance, an invalid option in what).</dd>
+</dl>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">lua_Hook(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_getinfo</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 19, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 3bb407e627ba2b4847f86831730f2a6207c83b14 (mode 644)
--- /dev/null
+++ lua_getlocal.3
@@ -0,0 +1,45 @@
+.Dd $Mdocdate: July 13 2022 $
+.Dt LUA_GETLOCAL 3
+.Os
+.Sh NAME
+.Nm lua_getlocal
+.Nd gets information about a local variable of a given activation record
+.Sh SYNOPSIS
+.In lua.h
+.Ft const char *
+.Fn lua_getlocal "lua_State *L" "lua_Debug *ar" "int n"
+.Sh DESCRIPTION
+.Fn lua_getlocal
+gets information about a local variable of a given activation record.
+The parameter
+.Fa ar
+must be a valid activation record that was filled by a previous call to
+.Fn lua_getstack
+or given as argument to a hook (see
+.Xr lua_Hook 3 ).
+The index
+.Fa n
+selects which local variable to inspect (1 is the first parameter or active
+local variable, and so on, until the last active local variable).
+.Fn lua_getlocal
+pushes the variable's value onto the stack and returns its name.
+.Pp
+Variable names starting with '(' (open parentheses) represent internal
+variables (loop control variables, temporaries, and C function locals).
+.Sh RETURN VALUES
+Returns
+.Dv NULL
+.Pq and pushes nothing
+when the index is greater than the number of active local variables.
+.Sh SEE ALSO
+.Xr lua_Hook 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_getlocal
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 8b4cddb9a7536e86dc8c0733e5d2e5ac5dd3da7b (mode 644)
--- /dev/null
+++ lua_getlocal.3.html
@@ -0,0 +1,67 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_GETLOCAL(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_GETLOCAL(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_GETLOCAL(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_getlocal</code> &#x2014;
+<div class="Nd" title="Nd">gets information about a local variable of a given
+  activation record</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">const char *</var>
+<br/>
+<code class="Fn" title="Fn">lua_getlocal</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">lua_Debug
+  *ar</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  n</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_getlocal</code>() gets information about a local
+  variable of a given activation record. The parameter
+  <var class="Fa" title="Fa">ar</var> must be a valid activation record that was
+  filled by a previous call to <code class="Fn" title="Fn">lua_getstack</code>()
+  or given as argument to a hook (see <a class="Xr" title="Xr">lua_Hook(3)</a>
+  ). The index <var class="Fa" title="Fa">n</var> selects which local variable
+  to inspect (1 is the first parameter or active local variable, and so on,
+  until the last active local variable).
+  <code class="Fn" title="Fn">lua_getlocal</code>() pushes the variable's value
+  onto the stack and returns its name.
+<div class="Pp"></div>
+Variable names starting with '(' (open parentheses) represent internal variables
+  (loop control variables, temporaries, and C function locals).
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+Returns <code class="Dv" title="Dv">NULL</code> (and pushes nothing) when the
+  index is greater than the number of active local variables.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">lua_Hook(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_getlocal</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 13, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + d508132557f202c48017c1fdd342e23621189cd2 (mode 644)
--- /dev/null
+++ lua_getmetatable.3
@@ -0,0 +1,29 @@
+.Dd $Mdocdate: July 14 2022 $
+.Dt LUA_GETMETATABLE 3
+.Os
+.Sh NAME
+.Nm lua_getmetatable
+.Nd pushes onto the stack the metatable of the value at the given acceptable index
+.Sh SYNOPSIS
+.In lua.h
+.Ft int
+.Fn lua_getmetatable "lua_State *L" "int index"
+.Sh DESCRIPTION
+.Fn lua_getmetatable
+pushes onto the stack the metatable of the value at the given acceptable index.
+.Sh RETURN VALUES
+If the
+.Fa index
+is not valid, or if the value does not have a metatable, the function returns 0
+and pushes nothing on the stack.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_getmetatable
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 29f00e333eac26ec6e3d4a1a5bbb83f7b38c2c64 (mode 644)
--- /dev/null
+++ lua_getmetatable.3.html
@@ -0,0 +1,53 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_GETMETATABLE(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_GETMETATABLE(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_GETMETATABLE(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_getmetatable</code> &#x2014;
+<div class="Nd" title="Nd">pushes onto the stack the metatable of the value at
+  the given acceptable index</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">lua_getmetatable</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_getmetatable</code>() pushes onto the stack the
+  metatable of the value at the given acceptable index.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+If the <var class="Fa" title="Fa">index</var> is not valid, or if the value does
+  not have a metatable, the function returns 0 and pushes nothing on the stack.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_getmetatable</code>() manual page was
+  written by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 14, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 10ef22f1255cb90ec5bb69e68cdbf3df14b57511 (mode 644)
--- /dev/null
+++ lua_getstack.3
@@ -0,0 +1,37 @@
+.Dd $Mdocdate: July 13 2022 $
+.Dt LUA_GETSTACK 3
+.Os
+.Sh NAME
+.Nm lua_getstack
+.Nd get information about the interpreter runtime stack
+.Sh SYNOPSIS
+.In lua.h
+.Ft int
+.Fn lua_getstack "lua_State *L" "int level" "lua_Debug *ar"
+.Sh DESCRIPTION
+.Fn lua_getstack
+get information about the interpreter runtime stack.
+.Pp
+This function fills parts of a
+.Xr lua_Debug 3
+structure with an identification of the activation record of the function
+executing at a given level.
+Level 0 is the current running function, whereas level n+1 is the function that
+has called level
+.Fa n .
+.Sh RETURN VALUES
+When there are no errors,
+.Fn lua_getstack
+returns 1; when called with a level greater than the stack depth, it returns 0.
+.Sh SEE ALSO
+.Xr lua_Debug 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_getstack
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + a8a48f3ffbd35ba84884bbbf152346ba88e08e40 (mode 644)
--- /dev/null
+++ lua_getstack.3.html
@@ -0,0 +1,63 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_GETSTACK(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_GETSTACK(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_GETSTACK(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_getstack</code> &#x2014;
+<div class="Nd" title="Nd">get information about the interpreter runtime
+  stack</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">lua_getstack</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  level</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">lua_Debug
+  *ar</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_getstack</code>() get information about the
+  interpreter runtime stack.
+<div class="Pp"></div>
+This function fills parts of a <a class="Xr" title="Xr">lua_Debug(3)</a>
+  structure with an identification of the activation record of the function
+  executing at a given level. Level 0 is the current running function, whereas
+  level n+1 is the function that has called level
+  <var class="Fa" title="Fa">n</var>.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+When there are no errors, <code class="Fn" title="Fn">lua_getstack</code>()
+  returns 1; when called with a level greater than the stack depth, it returns
+  0.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">lua_Debug(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_getstack</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 13, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 76a86364e1df4f17796a9fa8ec39234159659176 (mode 644)
--- /dev/null
+++ lua_gettable.3
@@ -0,0 +1,32 @@
+.Dd $Mdocdate: July 14 2022 $
+.Dt LUA_GETTABLE 3
+.Os
+.Sh NAME
+.Nm lua_gettable
+.Nd pushes onto the stack the value t[k], where t is the value at the given valid
+index and k is the value at the top of the stack
+.Sh SYNOPSIS
+.In lua.h
+.Ft void
+.Fn lua_gettable "lua_State *L" "int index"
+.Sh DESCRIPTION
+.Fn lua_gettable
+pushes onto the stack the value t[k], where t is the value at the given valid
+index and k is the value at the top of the stack.
+.Pp
+This function pops the key from the stack (putting the resulting value in its
+place).
+As in Lua, this function may trigger a metamethod for the
+.Qq index
+event.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_gettable
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + e0f185b666fc04a043cfbd5ae8becc5dec8f6e96 (mode 644)
--- /dev/null
+++ lua_gettable.3.html
@@ -0,0 +1,55 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_GETTABLE(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_GETTABLE(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_GETTABLE(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_gettable</code> &#x2014;
+<div class="Nd" title="Nd">pushes onto the stack the value t[k], where t is the
+  value at the given valid index and k is the value at the top of the
+  stack</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">lua_gettable</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_gettable</code>() pushes onto the stack the
+  value t[k], where t is the value at the given valid index and k is the value
+  at the top of the stack.
+<div class="Pp"></div>
+This function pops the key from the stack (putting the resulting value in its
+  place). As in Lua, this function may trigger a metamethod for the
+  &#x201C;index&#x201D; event.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_gettable</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 14, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 8da859c48707a0e13baa8347da07e577b26b58c3 (mode 644)
--- /dev/null
+++ lua_gettop.3
@@ -0,0 +1,28 @@
+.Dd $Mdocdate: July 14 2022 $
+.Dt LUA_GETTOP 3
+.Os
+.Sh NAME
+.Nm lua_gettop
+.Nd returns the index of the top element in the stack
+.Sh SYNOPSIS
+.In lua.h
+.Ft int
+.Fn lua_gettop "lua_State *L"
+.Sh DESCRIPTION
+.Fn lua_gettop
+returns the index of the top element in the stack.
+Because indices start at 1, this result is equal to the number of elements in
+the stack (and so 0 means an empty stack).
+.Sh RETURN VALUES
+Returns the index of the top element in the stack.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_gettop
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 512c99558f7140d0e2c5f4e2db919f5f5e5cf8fc (mode 644)
--- /dev/null
+++ lua_gettop.3.html
@@ -0,0 +1,52 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_GETTOP(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_GETTOP(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_GETTOP(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_gettop</code> &#x2014;
+<div class="Nd" title="Nd">returns the index of the top element in the
+  stack</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">lua_gettop</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_gettop</code>() returns the index of the top
+  element in the stack. Because indices start at 1, this result is equal to the
+  number of elements in the stack (and so 0 means an empty stack).
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+Returns the index of the top element in the stack.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_gettop</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 14, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 55de275046b8460a84d79e0828c3a2565a31e5c3 (mode 644)
--- /dev/null
+++ lua_getupvalue.3
@@ -0,0 +1,42 @@
+.Dd $Mdocdate: July 13 2022 $
+.Dt LUA_GETUPVALUE 3
+.Os
+.Sh NAME
+.Nm lua_getupvalue
+.Nd gets information about a closure's upvalue
+.Sh SYNOPSIS
+.In lua.h
+.Ft const char *
+.Fn lua_getupvalue "lua_State *L" "int funcindex" "int n"
+.Sh DESCRIPTION
+.Fn lua_getupvalue
+gets information about a closure's upvalue.
+(For Lua functions, upvalues are the external local variables that the function
+uses, and that are consequently included in its closure.)
+.Fn lua_getupvalue
+gets the index
+.Fa n
+of an upvalue, pushes the upvalue's value onto the stack, and returns its name.
+.Fa funcindex
+points to the closure in the stack.
+(Upvalues have no particular order, as they are active through the whole
+function.
+So, they are numbered in an arbitrary order.)
+.Sh RETURN VALUES
+Returns
+.Dv NULL
+.Pq and pushes nothing
+when the index is greater than the number of upvalues.
+For C functions, this function uses the empty string "" as a name for all
+upvalues.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_getupvalue
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 3c418bd5fad88808a722ddc52f2f8398934aee92 (mode 644)
--- /dev/null
+++ lua_getupvalue.3.html
@@ -0,0 +1,61 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_GETUPVALUE(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_GETUPVALUE(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_GETUPVALUE(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_getupvalue</code> &#x2014;
+<div class="Nd" title="Nd">gets information about a closure's upvalue</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">const char *</var>
+<br/>
+<code class="Fn" title="Fn">lua_getupvalue</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  funcindex</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  n</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_getupvalue</code>() gets information about a
+  closure's upvalue. (For Lua functions, upvalues are the external local
+  variables that the function uses, and that are consequently included in its
+  closure.) <code class="Fn" title="Fn">lua_getupvalue</code>() gets the index
+  <var class="Fa" title="Fa">n</var> of an upvalue, pushes the upvalue's value
+  onto the stack, and returns its name.
+  <var class="Fa" title="Fa">funcindex</var> points to the closure in the stack.
+  (Upvalues have no particular order, as they are active through the whole
+  function. So, they are numbered in an arbitrary order.)
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+Returns <code class="Dv" title="Dv">NULL</code> (and pushes nothing) when the
+  index is greater than the number of upvalues. For C functions, this function
+  uses the empty string &quot;&quot; as a name for all upvalues.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_getupvalue</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 13, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 5d761df28d9aca518695b9342a62e4171af20f1e (mode 644)
--- /dev/null
+++ lua_insert.3
@@ -0,0 +1,28 @@
+.Dd $Mdocdate: July 14 2022 $
+.Dt LUA_INSERT 3
+.Os
+.Sh NAME
+.Nm lua_insert
+.Nd moves the top element into the given valid index, shifting up the elements
+above this index to open space
+.Sh SYNOPSIS
+.In lua.h
+.Ft void
+.Fn lua_insert "lua_State *L" "int index"
+.Sh DESCRIPTION
+.Fn lua_insert
+moves the top element into the given valid index, shifting up the elements
+above this index to open space.
+Cannot be called with a pseudo-index, because a pseudo-index is not an actual
+stack position.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_insert
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 45a2166ec6e94296eda888efdf3c61bba287a0bf (mode 644)
--- /dev/null
+++ lua_insert.3.html
@@ -0,0 +1,51 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_INSERT(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_INSERT(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_INSERT(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_insert</code> &#x2014;
+<div class="Nd" title="Nd">moves the top element into the given valid index,
+  shifting up the elements above this index to open space</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">lua_insert</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_insert</code>() moves the top element into the
+  given valid index, shifting up the elements above this index to open space.
+  Cannot be called with a pseudo-index, because a pseudo-index is not an actual
+  stack position.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_insert</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 14, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + ee7b02bd31bfb67cf34b1404db1caa4b6e1c2ee5 (mode 644)
--- /dev/null
+++ lua_isboolean.3
@@ -0,0 +1,28 @@
+.Dd $Mdocdate: July 14 2022 $
+.Dt LUA_ISBOOLEAN 3
+.Os
+.Sh NAME
+.Nm lua_isboolean
+.Nd check whether a value is a boolean
+.Sh SYNOPSIS
+.In lua.h
+.Ft int
+.Fn lua_isboolean "lua_State *L" "int index"
+.Sh DESCRIPTION
+.Fn lua_isboolean
+returns 1 if the value at the given acceptable index has type boolean, and 0
+otherwise.
+.Sh RETURN VALUES
+Returns 1 if the value at the given acceptable index has type boolean, and 0
+otherwise.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_isboolean
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + e0cbd81a443f34d0a93b1b68531c91a8c04d8995 (mode 644)
--- /dev/null
+++ lua_isboolean.3.html
@@ -0,0 +1,52 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_ISBOOLEAN(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_ISBOOLEAN(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_ISBOOLEAN(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_isboolean</code> &#x2014;
+<div class="Nd" title="Nd">check whether a value is a boolean</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">lua_isboolean</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_isboolean</code>() returns 1 if the value at the
+  given acceptable index has type boolean, and 0 otherwise.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+Returns 1 if the value at the given acceptable index has type boolean, and 0
+  otherwise.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_isboolean</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 14, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 6558385f59c2e319d5137aa9b429739fababb4c5 (mode 644)
--- /dev/null
+++ lua_iscfunction.3
@@ -0,0 +1,28 @@
+.Dd $Mdocdate: July 14 2022 $
+.Dt LUA_ISCFUNCTION 3
+.Os
+.Sh NAME
+.Nm lua_iscfunction
+.Nd check whether a value is a C function
+.Sh SYNOPSIS
+.In lua.h
+.Ft int
+.Fn lua_iscfunction "lua_State *L" "int index"
+.Sh DESCRIPTION
+.Fn lua_iscfunction
+returns 1 if the value at the given acceptable index is a C function, and 0
+otherwise.
+.Sh RETURN VALUES
+Returns 1 if the value at the given acceptable index is a C function, and 0
+otherwise.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_iscfunction
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 4d69edd2a64464a5c8db038d912c4d440c8bbaed (mode 644)
--- /dev/null
+++ lua_iscfunction.3.html
@@ -0,0 +1,52 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_ISCFUNCTION(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_ISCFUNCTION(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_ISCFUNCTION(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_iscfunction</code> &#x2014;
+<div class="Nd" title="Nd">check whether a value is a C function</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">lua_iscfunction</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_iscfunction</code>() returns 1 if the value at
+  the given acceptable index is a C function, and 0 otherwise.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+Returns 1 if the value at the given acceptable index is a C function, and 0
+  otherwise.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_iscfunction</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 14, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + c96dc84923a533c383f0cbab5f874aa5db6f748f (mode 644)
--- /dev/null
+++ lua_isfunction.3
@@ -0,0 +1,28 @@
+.Dd $Mdocdate: July 14 2022 $
+.Dt LUA_ISFUNCTION 3
+.Os
+.Sh NAME
+.Nm lua_isfunction
+.Nd check whether a value is a function
+.Sh SYNOPSIS
+.In lua.h
+.Ft int
+.Fn lua_isfunction "lua_State *L" "int index"
+.Sh DESCRIPTION
+.Fn lua_isfunction
+returns 1 if the value at the given acceptable index is a function (either C or
+Lua), and 0 otherwise.
+.Sh RETURN VALUES
+Returns 1 if the value at the given acceptable index is a function (either C or
+Lua), and 0 otherwise.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_isfunction
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + d51c4611da2003784754cbe0671c32f9a3a900d8 (mode 644)
--- /dev/null
+++ lua_isfunction.3.html
@@ -0,0 +1,52 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_ISFUNCTION(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_ISFUNCTION(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_ISFUNCTION(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_isfunction</code> &#x2014;
+<div class="Nd" title="Nd">check whether a value is a function</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">lua_isfunction</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_isfunction</code>() returns 1 if the value at
+  the given acceptable index is a function (either C or Lua), and 0 otherwise.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+Returns 1 if the value at the given acceptable index is a function (either C or
+  Lua), and 0 otherwise.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_isfunction</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 14, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 00622693069d916eb84155cde6b1f2aa602da642 (mode 644)
--- /dev/null
+++ lua_islightuserdata.3
@@ -0,0 +1,28 @@
+.Dd $Mdocdate: July 14 2022 $
+.Dt LUA_ISLIGHTUSERDATA 3
+.Os
+.Sh NAME
+.Nm lua_islightuserdata
+.Nd check whether a value is a light userdata
+.Sh SYNOPSIS
+.In lua.h
+.Ft int
+.Fn lua_islightuserdata "lua_State *L" "int index"
+.Sh DESCRIPTION
+.Fn lua_islightuserdata
+returns 1 if the value at the given acceptable index is a light userdata, and 0
+otherwise.
+.Sh RETURN VALUES
+Returns 1 if the value at the given acceptable index is a light userdata, and 0
+otherwise.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_islightuserdata
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 0040013c558c08093c7041a86161948069d1dce5 (mode 644)
--- /dev/null
+++ lua_islightuserdata.3.html
@@ -0,0 +1,52 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_ISLIGHTUSERDATA(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_ISLIGHTUSERDATA(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_ISLIGHTUSERDATA(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_islightuserdata</code> &#x2014;
+<div class="Nd" title="Nd">check whether a value is a light userdata</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">lua_islightuserdata</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_islightuserdata</code>() returns 1 if the value
+  at the given acceptable index is a light userdata, and 0 otherwise.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+Returns 1 if the value at the given acceptable index is a light userdata, and 0
+  otherwise.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_islightuserdata</code>() manual page was
+  written by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 14, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 8ece0c7f4242fdb5f7b6746be8edcc12a1a2ac6f (mode 644)
--- /dev/null
+++ lua_isnil.3
@@ -0,0 +1,26 @@
+.Dd $Mdocdate: July 14 2022 $
+.Dt LUA_ISNIL 3
+.Os
+.Sh NAME
+.Nm lua_isnil
+.Nd check whether a value is a nil
+.Sh SYNOPSIS
+.In lua.h
+.Ft int
+.Fn lua_isnil "lua_State *L" "int index"
+.Sh DESCRIPTION
+.Fn lua_isnil
+returns 1 if the value at the given acceptable index is nil, and 0 otherwise.
+.Sh RETURN VALUES
+Returns 1 if the value at the given acceptable index is nil, and 0 otherwise.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_isnil
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + bb9227a6f6fe11518fb0b3e921ce2fea84665d6c (mode 644)
--- /dev/null
+++ lua_isnil.3.html
@@ -0,0 +1,51 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_ISNIL(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_ISNIL(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_ISNIL(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_isnil</code> &#x2014;
+<div class="Nd" title="Nd">check whether a value is a nil</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">lua_isnil</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_isnil</code>() returns 1 if the value at the
+  given acceptable index is nil, and 0 otherwise.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+Returns 1 if the value at the given acceptable index is nil, and 0 otherwise.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_isnil</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 14, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 2337f07202173d7ad2ca3f92fdc3ee2ded48dac1 (mode 644)
--- /dev/null
+++ lua_isnone.3
@@ -0,0 +1,27 @@
+.Dd $Mdocdate: July 14 2022 $
+.Dt LUA_ISNONE 3
+.Os
+.Sh NAME
+.Nm lua_isnone
+.Nd check whether a value is not valid
+.Sh SYNOPSIS
+.In lua.h
+.Ft int
+.Fn lua_isnone "lua_State *L" "int index"
+.Sh DESCRIPTION
+.Fn lua_isnone
+returns 1 if the given acceptable index is not valid, and 0 otherwise.
+.Sh RETURN VALUES
+Returns 1 if the given acceptable index is not valid (that is, it refers to an
+element outside the current stack), and 0 otherwise.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_isnone
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 717893064edd0912d59f3d075941271a3e947508 (mode 644)
--- /dev/null
+++ lua_isnone.3.html
@@ -0,0 +1,52 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_ISNONE(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_ISNONE(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_ISNONE(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_isnone</code> &#x2014;
+<div class="Nd" title="Nd">check whether a value is not valid</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">lua_isnone</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_isnone</code>() returns 1 if the given
+  acceptable index is not valid, and 0 otherwise.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+Returns 1 if the given acceptable index is not valid (that is, it refers to an
+  element outside the current stack), and 0 otherwise.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_isnone</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 14, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 07cf95ac0ed2af47041a8ec40b7036f8e33dffd8 (mode 644)
--- /dev/null
+++ lua_isnoneornil.3
@@ -0,0 +1,29 @@
+.Dd $Mdocdate: July 14 2022 $
+.Dt LUA_ISNONEORNIL 3
+.Os
+.Sh NAME
+.Nm lua_isnoneornil
+.Nd check whether a value is not valid or if the value is nil
+.Sh SYNOPSIS
+.In lua.h
+.Ft int
+.Fn lua_isnoneornil "lua_State *L" "int index"
+.Sh DESCRIPTION
+.Fn lua_isnoneornil
+returns 1 if the given acceptable index is not valid or if the value at this
+index is nil, and 0 otherwise.
+.Sh RETURN VALUES
+Returns 1 if the given acceptable index is not valid (that is, it refers to an
+element outside the current stack) or if the value at this index is nil, and 0
+otherwise.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_isnoneornil
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 07f6c4b36e6aac6e42f3dd9148b0c134305a4636 (mode 644)
--- /dev/null
+++ lua_isnoneornil.3.html
@@ -0,0 +1,55 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_ISNONEORNIL(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_ISNONEORNIL(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_ISNONEORNIL(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_isnoneornil</code> &#x2014;
+<div class="Nd" title="Nd">check whether a value is not valid or if the value is
+  nil</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">lua_isnoneornil</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_isnoneornil</code>() returns 1 if the given
+  acceptable index is not valid or if the value at this index is nil, and 0
+  otherwise.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+Returns 1 if the given acceptable index is not valid (that is, it refers to an
+  element outside the current stack) or if the value at this index is nil, and 0
+  otherwise.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_isnoneornil</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 14, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 67375aaf54cf37314d50964b4a7183d5351c0c40 (mode 644)
--- /dev/null
+++ lua_isnumber.3
@@ -0,0 +1,28 @@
+.Dd $Mdocdate: July 14 2022 $
+.Dt LUA_ISNUMBER 3
+.Os
+.Sh NAME
+.Nm lua_isnumber
+.Nd check whether a value is a number
+.Sh SYNOPSIS
+.In lua.h
+.Ft int
+.Fn lua_isnumber "lua_State *L" "int index"
+.Sh DESCRIPTION
+.Fn lua_isnumber
+returns 1 if the value at the given acceptable index is a number or a string
+convertible to a number, and 0 otherwise.
+.Sh RETURN VALUES
+Returns 1 if the value at the given acceptable index is a number or a string
+convertible to a number, and 0 otherwise.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_isnumber
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 3f4549d0691396798300229c404d2722e67f85d3 (mode 644)
--- /dev/null
+++ lua_isnumber.3.html
@@ -0,0 +1,53 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_ISNUMBER(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_ISNUMBER(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_ISNUMBER(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_isnumber</code> &#x2014;
+<div class="Nd" title="Nd">check whether a value is a number</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">lua_isnumber</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_isnumber</code>() returns 1 if the value at the
+  given acceptable index is a number or a string convertible to a number, and 0
+  otherwise.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+Returns 1 if the value at the given acceptable index is a number or a string
+  convertible to a number, and 0 otherwise.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_isnumber</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 14, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + d2b8c264c0da360c10c4ca87028b044e085d514f (mode 644)
--- /dev/null
+++ lua_isstring.3
@@ -0,0 +1,28 @@
+.Dd $Mdocdate: July 15 2022 $
+.Dt LUA_ISSTRING 3
+.Os
+.Sh NAME
+.Nm lua_isstring
+.Nd check whether a value is a string or a number
+.Sh SYNOPSIS
+.In lua.h
+.Ft int
+.Fn lua_isstring "lua_State *L" "int index"
+.Sh DESCRIPTION
+.Fn lua_isstring
+returns 1 if the value at the given acceptable index is a string or a number
+(which is always convertible to a string), and 0 otherwise.
+.Sh RETURN VALUES
+Returns 1 if the value at the given acceptable index is a string or a number
+(which is always convertible to a string), and 0 otherwise.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_isstring
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + ffa6a8811792cdc342ecec6d9ee76622a58e6119 (mode 644)
--- /dev/null
+++ lua_isstring.3.html
@@ -0,0 +1,53 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_ISSTRING(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_ISSTRING(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_ISSTRING(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_isstring</code> &#x2014;
+<div class="Nd" title="Nd">check whether a value is a string or a number</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">lua_isstring</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_isstring</code>() returns 1 if the value at the
+  given acceptable index is a string or a number (which is always convertible to
+  a string), and 0 otherwise.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+Returns 1 if the value at the given acceptable index is a string or a number
+  (which is always convertible to a string), and 0 otherwise.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_isstring</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 15, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 7183c88fda82f3de2b6d6add509f8a0f827110e7 (mode 644)
--- /dev/null
+++ lua_istable.3
@@ -0,0 +1,26 @@
+.Dd $Mdocdate: July 15 2022 $
+.Dt LUA_ISTABLE 3
+.Os
+.Sh NAME
+.Nm lua_istable
+.Nd check whether a value is a table
+.Sh SYNOPSIS
+.In lua.h
+.Ft int
+.Fn lua_istable "lua_State *L" "int index"
+.Sh DESCRIPTION
+.Fn lua_istable
+.Sh RETURN VALUES
+Returns 1 if the value at the given acceptable index is a table, and 0
+otherwise.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_istable
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + e39117a711dd4025854d373dba1d61eb321e0d41 (mode 644)
--- /dev/null
+++ lua_istable.3.html
@@ -0,0 +1,51 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_ISTABLE(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_ISTABLE(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_ISTABLE(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_istable</code> &#x2014;
+<div class="Nd" title="Nd">check whether a value is a table</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">lua_istable</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_istable</code>()
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+Returns 1 if the value at the given acceptable index is a table, and 0
+  otherwise.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_istable</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 15, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + cbc0a288d97e5a2e357256fe92aafb29cb554b25 (mode 644)
--- /dev/null
+++ lua_isthread.3
@@ -0,0 +1,28 @@
+.Dd $Mdocdate: July 15 2022 $
+.Dt LUA_ISTHREAD 3
+.Os
+.Sh NAME
+.Nm lua_isthread
+.Nd check whether a value is a thread
+.Sh SYNOPSIS
+.In lua.h
+.Ft int
+.Fn lua_isthread "lua_State *L" "int index"
+.Sh DESCRIPTION
+.Fn lua_isthread
+returns 1 if the value at the given acceptable index is a thread, and 0
+otherwise.
+.Sh RETURN VALUES
+Returns 1 if the value at the given acceptable index is a thread, and 0
+otherwise.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_isthread
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + ddfab492915454a0d87db1a5891cbc1d12c54e70 (mode 644)
--- /dev/null
+++ lua_isthread.3.html
@@ -0,0 +1,52 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_ISTHREAD(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_ISTHREAD(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_ISTHREAD(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_isthread</code> &#x2014;
+<div class="Nd" title="Nd">check whether a value is a thread</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">lua_isthread</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_isthread</code>() returns 1 if the value at the
+  given acceptable index is a thread, and 0 otherwise.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+Returns 1 if the value at the given acceptable index is a thread, and 0
+  otherwise.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_isthread</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 15, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + f6b066a7389e3fcb6a819a86f7d88860da0a81a2 (mode 644)
--- /dev/null
+++ lua_isuserdata.3
@@ -0,0 +1,28 @@
+.Dd $Mdocdate: July 15 2022 $
+.Dt LUA_ISUSERDATA 3
+.Os
+.Sh NAME
+.Nm lua_isuserdata
+.Nd check whether a value is a userdata
+.Sh SYNOPSIS
+.In lua.h
+.Ft int
+.Fn lua_isuserdata "lua_State *L" "int index"
+.Sh DESCRIPTION
+.Fn lua_isuserdata
+returns 1 if the value at the given acceptable index is a userdata (either full
+or light), and 0 otherwise.
+.Sh RETURN VALUES
+Returns 1 if the value at the given acceptable index is a userdata (either full
+or light), and 0 otherwise.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_isuserdata
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 01e2c8e7455f05f9acbba7f0daaaffbebae17bcb (mode 644)
--- /dev/null
+++ lua_isuserdata.3.html
@@ -0,0 +1,53 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_ISUSERDATA(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_ISUSERDATA(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_ISUSERDATA(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_isuserdata</code> &#x2014;
+<div class="Nd" title="Nd">check whether a value is a userdata</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">lua_isuserdata</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_isuserdata</code>() returns 1 if the value at
+  the given acceptable index is a userdata (either full or light), and 0
+  otherwise.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+Returns 1 if the value at the given acceptable index is a userdata (either full
+  or light), and 0 otherwise.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_isuserdata</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 15, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 21d651b70712462d3838e1f5116533fb8ce8b542 (mode 644)
--- /dev/null
+++ lua_lessthan.3
@@ -0,0 +1,32 @@
+.Dd $Mdocdate: July 15 2022 $
+.Dt LUA_LESSTHAN 3
+.Os
+.Sh NAME
+.Nm lua_lessthan
+.Nd compares two values
+.Sh SYNOPSIS
+.In lua.h
+.Ft int
+.Fn lua_lessthan "lua_State *L" "int index1" "int index2"
+.Sh DESCRIPTION
+.Fn lua_lessthan
+.Sh RETURN VALUES
+Returns 1 if the value at acceptable index
+.Fa index1
+is smaller than the value at acceptable index
+.Fa index2
+, following the semantics of the Lua < operator (that is, may call
+metamethods).
+Otherwise returns 0.
+Also returns 0 if any of the indices is non valid.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_lessthan
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + bb2e312d20407d408c350cdbfdc7a2c59dcc145c (mode 644)
--- /dev/null
+++ lua_lessthan.3.html
@@ -0,0 +1,55 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_LESSTHAN(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_LESSTHAN(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_LESSTHAN(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_lessthan</code> &#x2014;
+<div class="Nd" title="Nd">compares two values</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">lua_lessthan</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index1</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index2</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_lessthan</code>()
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+Returns 1 if the value at acceptable index
+  <var class="Fa" title="Fa">index1</var> is smaller than the value at
+  acceptable index <var class="Fa" title="Fa">index2</var> , following the
+  semantics of the Lua &lt; operator (that is, may call metamethods). Otherwise
+  returns 0. Also returns 0 if any of the indices is non valid.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_lessthan</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 15, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 237d92fb3ad2cea9fa4dcbc34992d48b6fb6c50b (mode 644)
--- /dev/null
+++ lua_load.3
@@ -0,0 +1,59 @@
+.Dd $Mdocdate: July 15 2022 $
+.Dt LUA_LOAD 3
+.Os
+.Sh NAME
+.Nm lua_load
+.Nd loads a Lua chunk
+.Sh SYNOPSIS
+.In lua.h
+.Ft int
+.Fn lua_load "lua_State *L" "lua_Reader reader" "void *data" "const char *chunkname"
+.Sh DESCRIPTION
+.Fn lua_load
+loads a Lua chunk.
+If there are no errors,
+.Fn lua_load
+pushes the compiled chunk as a Lua function on top of the stack.
+Otherwise, it pushes an error message.
+.Pp
+This function only loads a chunk; it does not run it.
+.Pp
+.Fn lua_load
+automatically detects whether the chunk is text or binary, and loads it
+accordingly, see
+.Xr luac 1 .
+.Pp
+The
+.Fn lua_load
+function uses a user-supplied reader function to read the chunk, see
+.Xr lua_Reader 3 .
+The data argument is an opaque value passed to the reader function.
+.Pp
+The chunkname argument gives a name to the chunk, which is used for error
+messages and in debug information.
+.Sh RETURN VALUES
+The return values of
+.Fn lua_load
+are:
+.Pp
+.Bl -tag -width LUA_ERRSYNTAX: -offset indent -compact
+.It Dv 0 :
+no errors;
+.It Dv LUA_ERRSYNTAX :
+syntax error during pre-compilation;
+.It Dv LUA_ERRMEM :
+memory allocation error.
+.El
+.Sh SEE ALSO
+.Xr luac 1 ,
+.Xr lua_Reader 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_load
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + a978645f548f0c08940315516008e4372c483c44 (mode 644)
--- /dev/null
+++ lua_load.3.html
@@ -0,0 +1,82 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_LOAD(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_LOAD(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_LOAD(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_load</code> &#x2014;
+<div class="Nd" title="Nd">loads a Lua chunk</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">lua_load</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">lua_Reader
+  reader</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">void
+  *data</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const
+  char *chunkname</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_load</code>() loads a Lua chunk. If there are no
+  errors, <code class="Fn" title="Fn">lua_load</code>() pushes the compiled
+  chunk as a Lua function on top of the stack. Otherwise, it pushes an error
+  message.
+<div class="Pp"></div>
+This function only loads a chunk; it does not run it.
+<div class="Pp"></div>
+<code class="Fn" title="Fn">lua_load</code>() automatically detects whether the
+  chunk is text or binary, and loads it accordingly, see
+  <a class="Xr" title="Xr">luac(1)</a>.
+<div class="Pp"></div>
+The <code class="Fn" title="Fn">lua_load</code>() function uses a user-supplied
+  reader function to read the chunk, see
+  <a class="Xr" title="Xr">lua_Reader(3)</a>. The data argument is an opaque
+  value passed to the reader function.
+<div class="Pp"></div>
+The chunkname argument gives a name to the chunk, which is used for error
+  messages and in debug information.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+The return values of <code class="Fn" title="Fn">lua_load</code>() are:
+<div class="Pp"></div>
+<div class="Bd-indent">
+<dl class="Bl-tag Bl-compact">
+  <dt><a class="permalink" href="#0"><code class="Dv" title="Dv" id="0">0</code></a>:</dt>
+  <dd>no errors;</dd>
+  <dt><a class="permalink" href="#LUA_ERRSYNTAX"><code class="Dv" title="Dv" id="LUA_ERRSYNTAX">LUA_ERRSYNTAX</code></a>:</dt>
+  <dd>syntax error during pre-compilation;</dd>
+  <dt><a class="permalink" href="#LUA_ERRMEM"><code class="Dv" title="Dv" id="LUA_ERRMEM">LUA_ERRMEM</code></a>:</dt>
+  <dd>memory allocation error.</dd>
+</dl>
+</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">luac(1)</a>, <a class="Xr" title="Xr">lua_Reader(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_load</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 15, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + ab3781e7ff87589fa40aa65809b0423a4be3a187 (mode 644)
--- /dev/null
+++ lua_newstate.3
@@ -0,0 +1,36 @@
+.Dd $Mdocdate: July 14 2022 $
+.Dt LUA_NEWSTATE 3
+.Os
+.Sh NAME
+.Nm lua_newstate
+.Nd creates a new, independent state
+.Sh SYNOPSIS
+.In lua.h
+.Ft lua_State *
+.Fn lua_newstate "lua_Alloc f" "void *ud"
+.Sh DESCRIPTION
+.Fn lua_newstate
+creates a new, independent state.
+The argument
+.Fa f
+is the allocator function; Lua does all memory allocation for this state
+through this function.
+The second argument,
+.Fa ud ,
+is an opaque pointer that Lua simply passes to the allocator in every call.
+.Sh RETURN VALUES
+Returns
+.Dv NULL
+if cannot create the state
+.Pq due to lack of memory .
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_newstate
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + f34c2c29b20d17a80a740a05c62fb838de96e703 (mode 644)
--- /dev/null
+++ lua_newstate.3.html
@@ -0,0 +1,55 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_NEWSTATE(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_NEWSTATE(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_NEWSTATE(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_newstate</code> &#x2014;
+<div class="Nd" title="Nd">creates a new, independent state</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">lua_State *</var>
+<br/>
+<code class="Fn" title="Fn">lua_newstate</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_Alloc
+  f</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">void
+  *ud</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_newstate</code>() creates a new, independent
+  state. The argument <var class="Fa" title="Fa">f</var> is the allocator
+  function; Lua does all memory allocation for this state through this function.
+  The second argument, <var class="Fa" title="Fa">ud</var>, is an opaque pointer
+  that Lua simply passes to the allocator in every call.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+Returns <code class="Dv" title="Dv">NULL</code> if cannot create the state (due
+  to lack of memory).
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_newstate</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 14, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + b6537ab9a19b6efd9f4c912e2dd661e01bb2bf21 (mode 644)
--- /dev/null
+++ lua_newtable.3
@@ -0,0 +1,26 @@
+.Dd $Mdocdate: July 14 2022 $
+.Dt LUA_NEWTABLE 3
+.Os
+.Sh NAME
+.Nm lua_newtable
+.Nd creates a new empty table and pushes it onto the stack
+.Sh SYNOPSIS
+.In lua.h
+.Ft void
+.Fn lua_newtable "lua_State *L"
+.Sh DESCRIPTION
+.Fn lua_newtable
+creates a new empty table and pushes it onto the stack.
+It is equivalent to
+.Em lua_createtable(L, 0, 0) .
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_newtable
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 7403955b7ff523efd094110880d6ea5c3193d036 (mode 644)
--- /dev/null
+++ lua_newtable.3.html
@@ -0,0 +1,49 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_NEWTABLE(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_NEWTABLE(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_NEWTABLE(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_newtable</code> &#x2014;
+<div class="Nd" title="Nd">creates a new empty table and pushes it onto the
+  stack</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">lua_newtable</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_newtable</code>() creates a new empty table and
+  pushes it onto the stack. It is equivalent to
+  <i class="Em" title="Em">lua_createtable(L, 0, 0)</i>.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_newtable</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 14, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + bbde69cc60bf8e531ca58595056694a088114319 (mode 644)
--- /dev/null
+++ lua_newthread.3
@@ -0,0 +1,37 @@
+.Dd $Mdocdate: July 15 2022 $
+.Dt LUA_NEWTHREAD 3
+.Os
+.Sh NAME
+.Nm lua_newthread
+.Nd creates a new thread
+.Sh SYNOPSIS
+.In lua.h
+.Ft lua_State *
+.Fn lua_newthread "lua_State *L"
+.Sh DESCRIPTION
+.Fn lua_newthread
+creates a new thread, pushes it on the stack, and returns a pointer to a
+.Xr lua_State 3
+that represents this new thread.
+The new state returned by this function shares with the original state all
+global objects (such as tables), but has an independent execution stack.
+.Pp
+There is no explicit function to close or to destroy a thread.
+Threads are subject to garbage collection, like any Lua object.
+.Sh RETURN VALUES
+.Fn lua_newthread
+returns a pointer to a
+.Xr lua_State 3
+that represents this new thread.
+.Sh SEE ALSO
+.Xr lua_State 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_newthread
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + b54d4fe6e650c3078385c62318d5083a4ce4b43d (mode 644)
--- /dev/null
+++ lua_newthread.3.html
@@ -0,0 +1,59 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_NEWTHREAD(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_NEWTHREAD(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_NEWTHREAD(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_newthread</code> &#x2014;
+<div class="Nd" title="Nd">creates a new thread</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">lua_State *</var>
+<br/>
+<code class="Fn" title="Fn">lua_newthread</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_newthread</code>() creates a new thread, pushes
+  it on the stack, and returns a pointer to a
+  <a class="Xr" title="Xr">lua_State(3)</a> that represents this new thread. The
+  new state returned by this function shares with the original state all global
+  objects (such as tables), but has an independent execution stack.
+<div class="Pp"></div>
+There is no explicit function to close or to destroy a thread. Threads are
+  subject to garbage collection, like any Lua object.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+<code class="Fn" title="Fn">lua_newthread</code>() returns a pointer to a
+  <a class="Xr" title="Xr">lua_State(3)</a> that represents this new thread.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">lua_State(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_newthread</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 15, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 30e905ded2624b87f7cddf4b32450a842fdf0ef5 (mode 644)
--- /dev/null
+++ lua_newuserdata.3
@@ -0,0 +1,37 @@
+.Dd $Mdocdate: July 15 2022 $
+.Dt LUA_NEWUSERDATA 3
+.Os
+.Sh NAME
+.Nm lua_newuserdata
+.Nd allocates a new block of memory with the given size
+.Sh SYNOPSIS
+.In lua.h
+.Ft void *
+.Fn lua_newuserdata "lua_State *L" "size_t size"
+.Sh DESCRIPTION
+.Fn lua_newuserdata
+allocates a new block of memory with the given size, pushes onto the stack a
+new full userdata with the block address, and returns this address.
+.Pp
+Userdata represent C values in Lua.
+A
+.Em full
+userdata represents a block of memory.
+It is an object (like a table): you must create it, it can have its own
+metatable, and you can detect when it is being collected.
+A full userdata is only equal to itself (under raw equality).
+.Pp
+When Lua collects a full userdata with a gc metamethod, Lua calls the
+metamethod and marks the userdata as finalized.
+When this userdata is collected again then Lua frees its corresponding memory.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_newuserdata
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + c8ecebcde1af644c9f4ab59ced1615574dfa425d (mode 644)
--- /dev/null
+++ lua_newuserdata.3.html
@@ -0,0 +1,59 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_NEWUSERDATA(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_NEWUSERDATA(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_NEWUSERDATA(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_newuserdata</code> &#x2014;
+<div class="Nd" title="Nd">allocates a new block of memory with the given
+  size</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void *</var>
+<br/>
+<code class="Fn" title="Fn">lua_newuserdata</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">size_t
+  size</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_newuserdata</code>() allocates a new block of
+  memory with the given size, pushes onto the stack a new full userdata with the
+  block address, and returns this address.
+<div class="Pp"></div>
+Userdata represent C values in Lua. A <i class="Em" title="Em">full</i> userdata
+  represents a block of memory. It is an object (like a table): you must create
+  it, it can have its own metatable, and you can detect when it is being
+  collected. A full userdata is only equal to itself (under raw equality).
+<div class="Pp"></div>
+When Lua collects a full userdata with a gc metamethod, Lua calls the metamethod
+  and marks the userdata as finalized. When this userdata is collected again
+  then Lua frees its corresponding memory.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_newuserdata</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 15, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 4c65fdbd197e5248213707078628affa858e637a (mode 644)
--- /dev/null
+++ lua_next.3
@@ -0,0 +1,52 @@
+.Dd $Mdocdate: July 20 2022 $
+.Dt LUA_NEXT 3
+.Os
+.Sh NAME
+.Nm lua_next
+.Nd pops a key from the stack, and pushes a key-value pair from the table
+.Sh SYNOPSIS
+.In lua.h
+.Ft int
+.Fn lua_next "lua_State *L" "int index"
+.Sh DESCRIPTION
+.Fn lua_next
+pops a key from the stack, and pushes a key-value pair from the table at the
+given index (the "next" pair after the given key).
+If there are no more elements in the table, then
+.Nm lua_next
+returns 0 (and pushes nothing).
+.Pp
+A typical traversal looks like this:
+.Pp
+.Bd -literal -offset indent -compact
+/* table is in the stack at index 't' */
+lua_pushnil(L);  /* first key */
+while (lua_next(L, t) != 0) {
+  /* uses 'key' (at index -2) and 'value' (at index -1) */
+  printf("%s - %s\n",
+         lua_typename(L, lua_type(L, -2)),
+         lua_typename(L, lua_type(L, -1)));
+  /* removes 'value'; keeps 'key' for next iteration */
+  lua_pop(L, 1);
+}
+.Ed
+.Pp
+While traversing a table, do not call
+.Xr lua_tolstring 3
+directly on a key, unless you know that the key is actually a string.
+Recall that
+.Xr lua_tolstring 3
+changes the value at the given index; this confuses the next call to
+.Nm lua_next .
+.Sh SEE ALSO
+.Xr lua_tolstring 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_next
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + dcaa27caf94fddc44347e1b5c960495099c7f6db (mode 644)
--- /dev/null
+++ lua_next.3.html
@@ -0,0 +1,78 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_NEXT(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_NEXT(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_NEXT(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_next</code> &#x2014;
+<div class="Nd" title="Nd">pops a key from the stack, and pushes a key-value
+  pair from the table</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">lua_next</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_next</code>() pops a key from the stack, and
+  pushes a key-value pair from the table at the given index (the
+  &quot;next&quot; pair after the given key). If there are no more elements in
+  the table, then <code class="Nm" title="Nm">lua_next</code> returns 0 (and
+  pushes nothing).
+<div class="Pp"></div>
+A typical traversal looks like this:
+<div class="Pp"></div>
+<div class="Bd Bd-indent">
+<pre class="Li">
+/* table is in the stack at index 't' */ 
+lua_pushnil(L);  /* first key */ 
+while (lua_next(L, t) != 0) { 
+  /* uses 'key' (at index -2) and 'value' (at index -1) */ 
+  printf(&quot;%s - %s0, 
+         lua_typename(L, lua_type(L, -2)), 
+         lua_typename(L, lua_type(L, -1))); 
+  /* removes 'value'; keeps 'key' for next iteration */ 
+  lua_pop(L, 1); 
+}
+</pre>
+</div>
+<div class="Pp"></div>
+While traversing a table, do not call
+  <a class="Xr" title="Xr">lua_tolstring(3)</a> directly on a key, unless you
+  know that the key is actually a string. Recall that
+  <a class="Xr" title="Xr">lua_tolstring(3)</a> changes the value at the given
+  index; this confuses the next call to
+  <code class="Nm" title="Nm">lua_next</code>.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">lua_tolstring(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_next</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 20, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + f82aec52f12a48d83f9dab1aae2a3ba1abedcbd9 (mode 644)
--- /dev/null
+++ lua_objlen.3
@@ -0,0 +1,29 @@
+.Dd $Mdocdate: July 15 2022 $
+.Dt LUA_OBJLEN 3
+.Os
+.Sh NAME
+.Nm lua_objlen
+.Nd returns the "length" of the value
+.Sh SYNOPSIS
+.In lua.h
+.Ft size_t
+.Fn lua_objlen "lua_State *L" "int index"
+.Sh DESCRIPTION
+.Fn lua_objlen
+returns the
+.Qq length
+of the value at the given acceptable index: for strings, this is the string
+length; for tables, this is the result of the length operator ('#'); for
+userdata, this is the size of the block of memory allocated for the userdata;
+for other values, it is 0.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_objlen
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 0887d3133b0d7332f851c83e94ee3c8b6e1a7ac5 (mode 644)
--- /dev/null
+++ lua_objlen.3.html
@@ -0,0 +1,51 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_OBJLEN(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_OBJLEN(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_OBJLEN(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_objlen</code> &#x2014;
+<div class="Nd" title="Nd">returns the length of the value</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">size_t</var>
+<br/>
+<code class="Fn" title="Fn">lua_objlen</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_objlen</code>() returns the
+  &#x201C;length&#x201D; of the value at the given acceptable index: for
+  strings, this is the string length; for tables, this is the result of the
+  length operator ('#'); for userdata, this is the size of the block of memory
+  allocated for the userdata; for other values, it is 0.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_objlen</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 15, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + e01fb2e0c7eee1981dd998348efa301d22119392 (mode 644)
--- /dev/null
+++ lua_pcall.3
@@ -0,0 +1,78 @@
+.Dd $Mdocdate: July 20 2022 $
+.Dt LUA_PCALL 3
+.Os
+.Sh NAME
+.Nm lua_pcall
+.Nd calls a function in protected mode
+.Sh SYNOPSIS
+.In lua.h
+.Ft int
+.Fn lua_pcall "lua_State *L" "int nargs" "int nresults" "int errfunc"
+.Sh DESCRIPTION
+.Fn lua_pcall
+calls a function in protected mode.
+.Pp
+Both
+.Fa nargs
+and
+.Fa nresults
+have the same meaning as in
+.Xr lua_call 3 .
+If there are no errors during the call,
+.Nm lua_pcall
+behaves exactly like
+.Xr lua_call 3 .
+However, if there is any error,
+.Nm lua_pcall
+catches it, pushes a single value on the stack (the error message), and returns
+an error code.
+Like
+.Xr lua_call 3 ,
+.Nm lua_pcall
+always removes the function and its arguments from the stack.
+.Pp
+If
+.Fa errfunc
+is 0, then the error message returned on the stack is exactly the original
+error message.
+Otherwise,
+.Fa errfunc
+is the stack index of an
+.Em error handler function .
+(In the current implementation, this index cannot be a pseudo-index.)
+In case of runtime errors, this function will be called with the error message
+and its return value will be the message returned on the stack by
+.Nm lua_pcall .
+.Pp
+Typically, the error handler function is used to add more debug information to
+the error message, such as a stack traceback.
+Such information cannot be gathered after the return of
+.Nm lua_pcall ,
+since by then the stack has unwound.
+.Sh RETURN VALUES
+The
+.Nm lua_pcall
+function returns 0 in case of success or one of the following error codes
+.Pq defined in In lua.h :
+.Pp
+.Bl -tag -width LUA_ERRRUN: -offset indent -compact
+.It Dv LUA_ERRRUN :
+a runtime error.
+.It Dv LUA_ERRMEM :
+memory allocation error.
+For such errors, Lua does not call the error handler function.
+.It Dv LUA_ERRERR :
+error while running the error handler function.
+.El
+.Sh SEE ALSO
+.Xr lua_call 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_pcall
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + bafe33cf98adfb21bd26330ed5534dfc7fdde3cf (mode 644)
--- /dev/null
+++ lua_pcall.3.html
@@ -0,0 +1,94 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_PCALL(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_PCALL(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_PCALL(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_pcall</code> &#x2014;
+<div class="Nd" title="Nd">calls a function in protected mode</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">lua_pcall</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  nargs</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  nresults</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  errfunc</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_pcall</code>() calls a function in protected
+  mode.
+<div class="Pp"></div>
+Both <var class="Fa" title="Fa">nargs</var> and
+  <var class="Fa" title="Fa">nresults</var> have the same meaning as in
+  <a class="Xr" title="Xr">lua_call(3)</a>. If there are no errors during the
+  call, <code class="Nm" title="Nm">lua_pcall</code> behaves exactly like
+  <a class="Xr" title="Xr">lua_call(3)</a>. However, if there is any error,
+  <code class="Nm" title="Nm">lua_pcall</code> catches it, pushes a single value
+  on the stack (the error message), and returns an error code. Like
+  <a class="Xr" title="Xr">lua_call(3)</a>,
+  <code class="Nm" title="Nm">lua_pcall</code> always removes the function and
+  its arguments from the stack.
+<div class="Pp"></div>
+If <var class="Fa" title="Fa">errfunc</var> is 0, then the error message
+  returned on the stack is exactly the original error message. Otherwise,
+  <var class="Fa" title="Fa">errfunc</var> is the stack index of an
+  <i class="Em" title="Em">error handler function</i>. (In the current
+  implementation, this index cannot be a pseudo-index.) In case of runtime
+  errors, this function will be called with the error message and its return
+  value will be the message returned on the stack by
+  <code class="Nm" title="Nm">lua_pcall</code>.
+<div class="Pp"></div>
+Typically, the error handler function is used to add more debug information to
+  the error message, such as a stack traceback. Such information cannot be
+  gathered after the return of <code class="Nm" title="Nm">lua_pcall</code>,
+  since by then the stack has unwound.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+The <code class="Nm" title="Nm">lua_pcall</code> function returns 0 in case of
+  success or one of the following error codes (defined in
+  <code class="In" title="In">&lt;<a class="In" title="In">lua.h</a>&gt;</code>):
+<div class="Pp"></div>
+<div class="Bd-indent">
+<dl class="Bl-tag Bl-compact">
+  <dt><a class="permalink" href="#LUA_ERRRUN"><code class="Dv" title="Dv" id="LUA_ERRRUN">LUA_ERRRUN</code></a>:</dt>
+  <dd>a runtime error.</dd>
+  <dt><a class="permalink" href="#LUA_ERRMEM"><code class="Dv" title="Dv" id="LUA_ERRMEM">LUA_ERRMEM</code></a>:</dt>
+  <dd>memory allocation error. For such errors, Lua does not call the error
+      handler function.</dd>
+  <dt><a class="permalink" href="#LUA_ERRERR"><code class="Dv" title="Dv" id="LUA_ERRERR">LUA_ERRERR</code></a>:</dt>
+  <dd>error while running the error handler function.</dd>
+</dl>
+</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">lua_call(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_pcall</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 20, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 3eeb713cf122b1a45f313bb8e74a1188ee5a709f (mode 644)
--- /dev/null
+++ lua_pop.3
@@ -0,0 +1,26 @@
+.Dd $Mdocdate: July 18 2022 $
+.Dt LUA_POP 3
+.Os
+.Sh NAME
+.Nm lua_pop
+.Nd pops n elements from the stack
+.Sh SYNOPSIS
+.In lua.h
+.Ft void
+.Fn lua_pop "lua_State *L" "int n"
+.Sh DESCRIPTION
+.Fn lua_pop
+pops
+.Fa n
+elements from the stack.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_pop
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 0f7297c88965d2c9a9f5487051f8f9f19f331879 (mode 644)
--- /dev/null
+++ lua_pop.3.html
@@ -0,0 +1,48 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_POP(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_POP(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_POP(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_pop</code> &#x2014;
+<div class="Nd" title="Nd">pops n elements from the stack</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">lua_pop</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  n</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_pop</code>() pops
+  <var class="Fa" title="Fa">n</var> elements from the stack.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_pop</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 18, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + b40f464897dadd50ff68310ed12878850fb9cc6a (mode 644)
--- /dev/null
+++ lua_pushboolean.3
@@ -0,0 +1,26 @@
+.Dd $Mdocdate: July 18 2022 $
+.Dt LUA_PUSHBOOLEAN 3
+.Os
+.Sh NAME
+.Nm lua_pushboolean
+.Nd pushes a boolean value onto the stack
+.Sh SYNOPSIS
+.In lua.h
+.Ft void
+.Fn lua_pushboolean "lua_State *L" "int b"
+.Sh DESCRIPTION
+.Fn lua_pushboolean
+pushes a boolean value with value
+.Fa b
+onto the stack.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_pushboolean
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 35833874179d3c4ad0c96e8ab5781d3902e241b8 (mode 644)
--- /dev/null
+++ lua_pushboolean.3.html
@@ -0,0 +1,48 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_PUSHBOOLEAN(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_PUSHBOOLEAN(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_PUSHBOOLEAN(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_pushboolean</code> &#x2014;
+<div class="Nd" title="Nd">pushes a boolean value onto the stack</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">lua_pushboolean</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  b</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_pushboolean</code>() pushes a boolean value with
+  value <var class="Fa" title="Fa">b</var> onto the stack.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_pushboolean</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 18, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 70ad7890e458b094daf24662bdf2db67c8ce4453 (mode 644)
--- /dev/null
+++ lua_pushcclosure.3
@@ -0,0 +1,41 @@
+.Dd $Mdocdate: July 18 2022 $
+.Dt LUA_PUSHCCLOSURE 3
+.Os
+.Sh NAME
+.Nm lua_pushcclosure
+.Nd pushes a new C closure onto the stack
+.Sh SYNOPSIS
+.In lua.h
+.Ft void
+.Fn lua_pushcclosure "lua_State *L" "lua_CFunction fn" "int n"
+.Sh DESCRIPTION
+.Fn lua_pushcclosure
+pushes a new C closure onto the stack.
+.Pp
+When a C function is created, it is possible to associate some values with it,
+thus creating a C closure; these values are then accessible to the function
+whenever it is called.
+To associate values with a C function, first these values should be pushed onto
+the stack (when there are multiple values, the first value is pushed first).
+Then
+.Fn lua_pushcclosure
+is called to create and push the C function onto the stack, with the argument
+.Fa n
+telling how many values should be associated with the function.
+.Fn lua_pushcclosure
+also pops these values from the stack.
+.Pp
+The maximum value for
+.Fa n
+is 255.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_pushcclosure
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 117e6037055ded599add48311fc819f673d13164 (mode 644)
--- /dev/null
+++ lua_pushcclosure.3.html
@@ -0,0 +1,64 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_PUSHCCLOSURE(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_PUSHCCLOSURE(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_PUSHCCLOSURE(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_pushcclosure</code> &#x2014;
+<div class="Nd" title="Nd">pushes a new C closure onto the stack</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">lua_pushcclosure</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">lua_CFunction
+  fn</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  n</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_pushcclosure</code>() pushes a new C closure
+  onto the stack.
+<div class="Pp"></div>
+When a C function is created, it is possible to associate some values with it,
+  thus creating a C closure; these values are then accessible to the function
+  whenever it is called. To associate values with a C function, first these
+  values should be pushed onto the stack (when there are multiple values, the
+  first value is pushed first). Then
+  <code class="Fn" title="Fn">lua_pushcclosure</code>() is called to create and
+  push the C function onto the stack, with the argument
+  <var class="Fa" title="Fa">n</var> telling how many values should be
+  associated with the function.
+  <code class="Fn" title="Fn">lua_pushcclosure</code>() also pops these values
+  from the stack.
+<div class="Pp"></div>
+The maximum value for <var class="Fa" title="Fa">n</var> is 255.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_pushcclosure</code>() manual page was
+  written by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 18, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 5bc6792d7ca20354bf9ee8f0c26391fefc00a899 (mode 644)
--- /dev/null
+++ lua_pushcfunction.3
@@ -0,0 +1,39 @@
+.Dd $Mdocdate: July 20 2022 $
+.Dt LUA_PUSHCFUNCTION 3
+.Os
+.Sh NAME
+.Nm lua_pushcfunction
+.Nd pushes a C function onto the stack
+.Sh SYNOPSIS
+.In lua.h
+.Ft void
+.Fn lua_pushcfunction "lua_State *L" "lua_CFunction f"
+.Sh DESCRIPTION
+.Fn lua_pushcfunction
+pushes a C function onto the stack.
+This function receives a pointer to a C function and pushes onto the stack a
+Lua value of type function that, when called, invokes the corresponding C
+function.
+.Pp
+Any function to be registered in Lua must follow the correct protocol to
+receive its parameters and return its results
+.Pq see Xr lua_CFunction 3 .
+.Pp
+.Nm lua_pushcfunction
+is defined as a macro:
+.Pp
+.Bd -literal -offset indent -compact
+#define lua_pushcfunction(L,f)  lua_pushcclosure(L,f,0)
+.Ed
+.Sh SEE ALSO
+.Xr lua_CFunction 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_pushcfunction
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + afae11a1640c6415c64f3eef253ee47139792a58 (mode 644)
--- /dev/null
+++ lua_pushcfunction.3.html
@@ -0,0 +1,65 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_PUSHCFUNCTION(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_PUSHCFUNCTION(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_PUSHCFUNCTION(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_pushcfunction</code> &#x2014;
+<div class="Nd" title="Nd">pushes a C function onto the stack</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">lua_pushcfunction</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">lua_CFunction
+  f</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_pushcfunction</code>() pushes a C function onto
+  the stack. This function receives a pointer to a C function and pushes onto
+  the stack a Lua value of type function that, when called, invokes the
+  corresponding C function.
+<div class="Pp"></div>
+Any function to be registered in Lua must follow the correct protocol to receive
+  its parameters and return its results (see
+  <a class="Xr" title="Xr">lua_CFunction(3)</a>).
+<div class="Pp"></div>
+<code class="Nm" title="Nm">lua_pushcfunction</code> is defined as a macro:
+<div class="Pp"></div>
+<div class="Bd Bd-indent">
+<pre class="Li">
+#define lua_pushcfunction(L,f)  lua_pushcclosure(L,f,0)
+</pre>
+</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">lua_CFunction(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_pushcfunction</code>() manual page was
+  written by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 20, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + c065ffc23a112d797c89441e1f50f44b0a7cfc12 (mode 644)
--- /dev/null
+++ lua_pushfstring.3
@@ -0,0 +1,51 @@
+.Dd $Mdocdate: July 20 2022 $
+.Dt LUA_PUSHFSTRING 3
+.Os
+.Sh NAME
+.Nm lua_pushfstring
+.Nd pushes onto the stack a formatted string and returns a pointer to this string
+.Sh SYNOPSIS
+.In lua.h
+.Ft const char *
+.Fn lua_pushfstring "lua_State *L" "const char *fmt" "..."
+.Sh DESCRIPTION
+.Fn lua_pushfstring
+pushes onto the stack a formatted string and returns a pointer to this string.
+It is similar to the C function
+.Xr sprintf 3 ,
+but has some important differences:
+.Bl -hyphen
+.It
+You do not have to allocate space for the result: the result is a Lua string
+and Lua takes care of memory allocation (and deallocation, through garbage
+collection).
+.It
+The conversion specifiers are quite restricted.
+There are no flags, widths, or precisions.
+The conversion specifiers can only be
+.Sq %%
+.Pq inserts a '%' in the string ,
+.Sq %s
+.Pq inserts a zero-terminated string, with no size restrictions ,
+.Sq %f
+.Pq inserts a Xr lua_Number 3 ,
+.Sq %p
+.Pq inserts a pointer as a hexadecimal numeral ,
+.Sq %d
+.Pq inserts an int ,
+and
+.Sq %c
+.Pq inserts an int as a character .
+.El
+.Sh SEE ALSO
+.Xr lua_Number 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_pushfstring
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + bc912fa9e8dd7be08fbc72674e34fa583e59bfda (mode 644)
--- /dev/null
+++ lua_pushfstring.3.html
@@ -0,0 +1,67 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_PUSHFSTRING(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_PUSHFSTRING(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_PUSHFSTRING(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_pushfstring</code> &#x2014;
+<div class="Nd" title="Nd">pushes onto the stack a formatted string and returns
+  a pointer to this string</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">const char *</var>
+<br/>
+<code class="Fn" title="Fn">lua_pushfstring</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const char
+  *fmt</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">...</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_pushfstring</code>() pushes onto the stack a
+  formatted string and returns a pointer to this string. It is similar to the C
+  function <a class="Xr" title="Xr">sprintf(3)</a>, but has some important
+  differences:
+<ul class="Bl-dash">
+  <li>You do not have to allocate space for the result: the result is a Lua
+      string and Lua takes care of memory allocation (and deallocation, through
+      garbage collection).</li>
+  <li>The conversion specifiers are quite restricted. There are no flags,
+      widths, or precisions. The conversion specifiers can only be
+      &#x2018;%%&#x2019; (inserts a '%' in the string), &#x2018;%s&#x2019;
+      (inserts a zero-terminated string, with no size restrictions),
+      &#x2018;%f&#x2019; (inserts a <a class="Xr" title="Xr">lua_Number(3)</a>),
+      &#x2018;%p&#x2019; (inserts a pointer as a hexadecimal numeral),
+      &#x2018;%d&#x2019; (inserts an int), and &#x2018;%c&#x2019; (inserts an
+      int as a character).</li>
+</ul>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">lua_Number(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_pushfstring</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 20, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + f4c30ac1c8fccba70d2d0a48295f34feda50abad (mode 644)
--- /dev/null
+++ lua_pushinteger.3
@@ -0,0 +1,26 @@
+.Dd $Mdocdate: July 18 2022 $
+.Dt LUA_PUSHINTEGER 3
+.Os
+.Sh NAME
+.Nm lua_pushinteger
+.Nd pushes a number with value
+.Sh SYNOPSIS
+.In lua.h
+.Ft void
+.Fn lua_pushinteger "lua_State *L" "lua_Integer n"
+.Sh DESCRIPTION
+.Fn lua_pushinteger
+pushes a number with value
+.Fa n
+onto the stack.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_pushinteger
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 7336ba7b1369dd09045687bfede86d0eea184649 (mode 644)
--- /dev/null
+++ lua_pushinteger.3.html
@@ -0,0 +1,48 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_PUSHINTEGER(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_PUSHINTEGER(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_PUSHINTEGER(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_pushinteger</code> &#x2014;
+<div class="Nd" title="Nd">pushes a number with value</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">lua_pushinteger</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">lua_Integer
+  n</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_pushinteger</code>() pushes a number with value
+  <var class="Fa" title="Fa">n</var> onto the stack.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_pushinteger</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 18, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 7f8b7abeed4c70a2c5031521e2e9148d581bb69c (mode 644)
--- /dev/null
+++ lua_pushlightuserdata.3
@@ -0,0 +1,32 @@
+.Dd $Mdocdate: July 18 2022 $
+.Dt LUA_PUSHLIGHTUSERDATA 3
+.Os
+.Sh NAME
+.Nm lua_pushlightuserdata
+.Nd pushes a light userdata onto the stack
+.Sh SYNOPSIS
+.In lua.h
+.Ft void
+.Fn lua_pushlightuserdata "lua_State *L" "void *p"
+.Sh DESCRIPTION
+.Fn lua_pushlightuserdata
+pushes a light userdata onto the stack.
+.Pp
+Userdata represent C values in Lua.
+A
+.Em light userdata
+represents a pointer.
+It is a value (like a number): you do not create it, it has no individual
+metatable, and it is not collected (as it was never created).
+A light userdata is equal to "any" light userdata with the same C address.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_pushlightuserdata
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 5baef8d0656b61dae693063d6aa179beb987a303 (mode 644)
--- /dev/null
+++ lua_pushlightuserdata.3.html
@@ -0,0 +1,54 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_PUSHLIGHTUSERDATA(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_PUSHLIGHTUSERDATA(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_PUSHLIGHTUSERDATA(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_pushlightuserdata</code> &#x2014;
+<div class="Nd" title="Nd">pushes a light userdata onto the stack</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">lua_pushlightuserdata</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">void
+  *p</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_pushlightuserdata</code>() pushes a light
+  userdata onto the stack.
+<div class="Pp"></div>
+Userdata represent C values in Lua. A <i class="Em" title="Em">light
+  userdata</i> represents a pointer. It is a value (like a number): you do not
+  create it, it has no individual metatable, and it is not collected (as it was
+  never created). A light userdata is equal to &quot;any&quot; light userdata
+  with the same C address.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_pushlightuserdata</code>() manual page was
+  written by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 18, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 8101ddd879ebffdf06e27d929efa48bde44a04c9 (mode 644)
--- /dev/null
+++ lua_pushliteral.3
@@ -0,0 +1,33 @@
+.Dd $Mdocdate: July 18 2022 $
+.Dt LUA_PUSHLITERAL 3
+.Os
+.Sh NAME
+.Nm lua_pushliteral
+.Nd pushes the string onto the stack
+.Sh SYNOPSIS
+.In lua.h
+.Ft void
+.Fn lua_pushliteral "lua_State *L" "const char *s"
+.Sh DESCRIPTION
+.Fn lua_pushliteral
+pushes the string pointed to by
+.Fa s
+onto the stack.
+This macro is equivalent to
+.Xr lua_pushlstring 3 ,
+but can be used only when
+.Fa s
+is a literal string.
+In these cases, it automatically provides the string length.
+.Sh SEE ALSO
+.Xr lua_pushlstring 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_pushliteral
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 7b1e2cb76bac3a4d92fcf08250450e0058052525 (mode 644)
--- /dev/null
+++ lua_pushliteral.3.html
@@ -0,0 +1,53 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_PUSHLITERAL(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_PUSHLITERAL(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_PUSHLITERAL(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_pushliteral</code> &#x2014;
+<div class="Nd" title="Nd">pushes the string onto the stack</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">lua_pushliteral</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const char
+  *s</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_pushliteral</code>() pushes the string pointed
+  to by <var class="Fa" title="Fa">s</var> onto the stack. This macro is
+  equivalent to <a class="Xr" title="Xr">lua_pushlstring(3)</a>, but can be used
+  only when <var class="Fa" title="Fa">s</var> is a literal string. In these
+  cases, it automatically provides the string length.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">lua_pushlstring(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_pushliteral</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 18, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + a328231fead150c3c2528d5e3b78039f01c1fad0 (mode 644)
--- /dev/null
+++ lua_pushlstring.3
@@ -0,0 +1,33 @@
+.Dd $Mdocdate: July 20 2022 $
+.Dt LUA_PUSHLSTRING 3
+.Os
+.Sh NAME
+.Nm lua_pushlstring
+.Nd pushes the string onto the stack
+.Sh SYNOPSIS
+.In lua.h
+.Ft void
+.Fn lua_pushlstring "lua_State *L" "const char *s" "size_t len"
+.Sh DESCRIPTION
+.Fn lua_pushlstring
+pushes the string pointed to by
+.Fa s
+with size
+.Fa len
+onto the stack.
+.Pp
+Lua makes (or reuses) an internal copy of the given string, so the memory at
+.Fa s
+can be freed or reused immediately after the function returns.
+The string can contain embedded zeros.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_pushlstring
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 4f84b751f7e68ca94c9e98372a202c007a7424dd (mode 644)
--- /dev/null
+++ lua_pushlstring.3.html
@@ -0,0 +1,54 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_PUSHLSTRING(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_PUSHLSTRING(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_PUSHLSTRING(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_pushlstring</code> &#x2014;
+<div class="Nd" title="Nd">pushes the string onto the stack</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">lua_pushlstring</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const char
+  *s</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">size_t
+  len</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_pushlstring</code>() pushes the string pointed
+  to by <var class="Fa" title="Fa">s</var> with size
+  <var class="Fa" title="Fa">len</var> onto the stack.
+<div class="Pp"></div>
+Lua makes (or reuses) an internal copy of the given string, so the memory at
+  <var class="Fa" title="Fa">s</var> can be freed or reused immediately after
+  the function returns. The string can contain embedded zeros.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_pushlstring</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 20, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 1c505590ce83da0933717df4f6e4c257ad8a1a75 (mode 644)
--- /dev/null
+++ lua_pushnil.3
@@ -0,0 +1,24 @@
+.Dd $Mdocdate: July 18 2022 $
+.Dt LUA_PUSHNIL 3
+.Os
+.Sh NAME
+.Nm lua_pushnil
+.Nd pushes a nil value onto the stack
+.Sh SYNOPSIS
+.In lua.h
+.Ft void
+.Fn lua_pushnil "lua_State *L"
+.Sh DESCRIPTION
+.Fn lua_pushnil
+pushes a nil value onto the stack.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_pushnil
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 81e9b09fa43c8f15742019051dd4858f0279a0d0 (mode 644)
--- /dev/null
+++ lua_pushnil.3.html
@@ -0,0 +1,47 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_PUSHNIL(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_PUSHNIL(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_PUSHNIL(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_pushnil</code> &#x2014;
+<div class="Nd" title="Nd">pushes a nil value onto the stack</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">lua_pushnil</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_pushnil</code>() pushes a nil value onto the
+  stack.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_pushnil</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 18, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 4f019f90f2eba384485cb30f9b2af96595567df3 (mode 644)
--- /dev/null
+++ lua_pushnumber.3
@@ -0,0 +1,26 @@
+.Dd $Mdocdate: July 18 2022 $
+.Dt LUA_PUSHNUMBER 3
+.Os
+.Sh NAME
+.Nm lua_pushnumber
+.Nd pushes a number onto the stack
+.Sh SYNOPSIS
+.In lua.h
+.Ft void
+.Fn lua_pushnumber "lua_State *L" "lua_Number n"
+.Sh DESCRIPTION
+.Fn lua_pushnumber
+pushes a number with value
+.Fa n
+onto the stack.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_pushnumber
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + dc90e96cb382e3b6c74e985cf543c51118989fd2 (mode 644)
--- /dev/null
+++ lua_pushnumber.3.html
@@ -0,0 +1,48 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_PUSHNUMBER(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_PUSHNUMBER(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_PUSHNUMBER(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_pushnumber</code> &#x2014;
+<div class="Nd" title="Nd">pushes a number onto the stack</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">lua_pushnumber</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">lua_Number
+  n</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_pushnumber</code>() pushes a number with value
+  <var class="Fa" title="Fa">n</var> onto the stack.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_pushnumber</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 18, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + f3122713b944e304cab730ec25318c76c4c753eb (mode 644)
--- /dev/null
+++ lua_pushstring.3
@@ -0,0 +1,31 @@
+.Dd $Mdocdate: July 18 2022 $
+.Dt LUA_PUSHSTRING 3
+.Os
+.Sh NAME
+.Nm lua_pushstring
+.Nd pushes the zero-terminated string onto the stack
+.Sh SYNOPSIS
+.In lua.h
+.Ft void
+.Fn lua_pushstring "lua_State *L" "const char *s"
+.Sh DESCRIPTION
+.Fn lua_pushstring
+pushes the zero-terminated string pointed to by
+.Fa s
+onto the stack.
+Lua makes (or reuses) an internal copy of the given string, so the memory at
+.Fa s
+can be freed or reused immediately after the function returns.
+The string cannot contain embedded zeros; it is assumed to end at the first
+zero.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_pushstring
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 786cb95ba70b1f0e5cd2f020dcc7ece978a3c4b8 (mode 644)
--- /dev/null
+++ lua_pushstring.3.html
@@ -0,0 +1,53 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_PUSHSTRING(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_PUSHSTRING(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_PUSHSTRING(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_pushstring</code> &#x2014;
+<div class="Nd" title="Nd">pushes the zero-terminated string onto the
+  stack</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">lua_pushstring</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const char
+  *s</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_pushstring</code>() pushes the zero-terminated
+  string pointed to by <var class="Fa" title="Fa">s</var> onto the stack. Lua
+  makes (or reuses) an internal copy of the given string, so the memory at
+  <var class="Fa" title="Fa">s</var> can be freed or reused immediately after
+  the function returns. The string cannot contain embedded zeros; it is assumed
+  to end at the first zero.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_pushstring</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 18, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + a04d41c98c28dd42391ca443d24145347328a263 (mode 644)
--- /dev/null
+++ lua_pushthread.3
@@ -0,0 +1,27 @@
+.Dd $Mdocdate: July 18 2022 $
+.Dt LUA_PUSHTHREAD 3
+.Os
+.Sh NAME
+.Nm lua_pushthread
+.Nd pushes the thread onto the stack
+.Sh SYNOPSIS
+.In lua.h
+.Ft int
+.Fn lua_pushthread "lua_State *L"
+.Sh DESCRIPTION
+.Fn lua_pushthread
+pushes the thread represented by
+.Fa L
+onto the stack.
+Returns 1 if this thread is the main thread of its state.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_pushthread
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + f7846e7b49ce4cb31ee723001ff382ff7a432b3c (mode 644)
--- /dev/null
+++ lua_pushthread.3.html
@@ -0,0 +1,48 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_PUSHTHREAD(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_PUSHTHREAD(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_PUSHTHREAD(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_pushthread</code> &#x2014;
+<div class="Nd" title="Nd">pushes the thread onto the stack</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">lua_pushthread</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_pushthread</code>() pushes the thread
+  represented by <var class="Fa" title="Fa">L</var> onto the stack. Returns 1 if
+  this thread is the main thread of its state.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_pushthread</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 18, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + d0fe3d4ce1b275e0de3d3f61697c73308f74955d (mode 644)
--- /dev/null
+++ lua_pushvalue.3
@@ -0,0 +1,24 @@
+.Dd $Mdocdate: July 18 2022 $
+.Dt LUA_PUSHVALUE 3
+.Os
+.Sh NAME
+.Nm lua_pushvalue
+.Nd pushes a copy of the element onto the stack
+.Sh SYNOPSIS
+.In lua.h
+.Ft void
+.Fn lua_pushvalue "lua_State *L" "int index"
+.Sh DESCRIPTION
+.Fn lua_pushvalue
+pushes a copy of the element at the given valid index onto the stack.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_pushvalue
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + e6836c9f9fccb5854620582bf10c600f6ac824e9 (mode 644)
--- /dev/null
+++ lua_pushvalue.3.html
@@ -0,0 +1,48 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_PUSHVALUE(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_PUSHVALUE(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_PUSHVALUE(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_pushvalue</code> &#x2014;
+<div class="Nd" title="Nd">pushes a copy of the element onto the stack</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">lua_pushvalue</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_pushvalue</code>() pushes a copy of the element
+  at the given valid index onto the stack.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_pushvalue</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 18, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 3c78e20c9b4d037ac42a712117afeb62a223be69 (mode 644)
--- /dev/null
+++ lua_pushvfstring.3
@@ -0,0 +1,30 @@
+.Dd $Mdocdate: July 18 2022 $
+.Dt LUA_PUSHVFSTRING 3
+.Os
+.Sh NAME
+.Nm lua_pushvfstring
+.Nd pushes onto the stack a formatted string and returns a pointer to this string
+.Sh SYNOPSIS
+.In lua.h
+.Ft const char *
+.Fn lua_pushvfstring "lua_State *L" "const char *fmt" "va_list argp"
+.Sh DESCRIPTION
+.Fn lua_pushvfstring
+pushes onto the stack a formatted string and returns a pointer to this string.
+Equivalent to
+.Xr lua_pushfstring 3 ,
+except that it receives a
+.Fa va_list
+instead of a variable number of arguments.
+.Sh SEE ALSO
+.Xr lua_pushfstring 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_pushvfstring
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + ccb21a45e1f345829fd7f5ee691778bbcd9fe4f1 (mode 644)
--- /dev/null
+++ lua_pushvfstring.3.html
@@ -0,0 +1,55 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_PUSHVFSTRING(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_PUSHVFSTRING(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_PUSHVFSTRING(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_pushvfstring</code> &#x2014;
+<div class="Nd" title="Nd">pushes onto the stack a formatted string and returns
+  a pointer to this string</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">const char *</var>
+<br/>
+<code class="Fn" title="Fn">lua_pushvfstring</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const char
+  *fmt</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">va_list
+  argp</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_pushvfstring</code>() pushes onto the stack a
+  formatted string and returns a pointer to this string. Equivalent to
+  <a class="Xr" title="Xr">lua_pushfstring(3)</a>, except that it receives a
+  <var class="Fa" title="Fa">va_list</var> instead of a variable number of
+  arguments.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">lua_pushfstring(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_pushvfstring</code>() manual page was
+  written by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 18, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 3c00a0b9d0e3b302ce03e84bccd567ae3462dfcf (mode 644)
--- /dev/null
+++ lua_rawequal.3
@@ -0,0 +1,30 @@
+.Dd $Mdocdate: July 18 2022 $
+.Dt LUA_RAWEQUAL 3
+.Os
+.Sh NAME
+.Nm lua_rawequal
+.Nd compare two values for equality without calling metamethods
+.Sh SYNOPSIS
+.In lua.h
+.Ft int
+.Fn lua_rawequal "lua_State *L" "int index1" "int index2"
+.Sh DESCRIPTION
+.Fn lua_rawequal
+returns 1 if the two values in acceptable indices
+.Fa index1
+and
+.Fa index2
+are primitively equal (that is, without calling metamethods).
+Otherwise returns 0.
+Also returns 0 if any of the indices are non valid.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_rawequal
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 08148ee26876b25f1aa0037fe6bc0858413bc224 (mode 644)
--- /dev/null
+++ lua_rawequal.3.html
@@ -0,0 +1,53 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_RAWEQUAL(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_RAWEQUAL(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_RAWEQUAL(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_rawequal</code> &#x2014;
+<div class="Nd" title="Nd">compare two values for equality without calling
+  metamethods</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">lua_rawequal</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index1</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index2</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_rawequal</code>() returns 1 if the two values in
+  acceptable indices <var class="Fa" title="Fa">index1</var> and
+  <var class="Fa" title="Fa">index2</var> are primitively equal (that is,
+  without calling metamethods). Otherwise returns 0. Also returns 0 if any of
+  the indices are non valid.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_rawequal</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 18, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + c51fc0adf15bad5eaf762ebd934fe079157ecd07 (mode 644)
--- /dev/null
+++ lua_rawget.3
@@ -0,0 +1,32 @@
+.Dd $Mdocdate: July 15 2022 $
+.Dt LUA_RAWGET 3
+.Os
+.Sh NAME
+.Nm lua_rawget
+.Nd pops the key from the stack
+.Sh SYNOPSIS
+.In lua.h
+.Ft void
+.Fn lua_rawget "lua_State *L" "int index"
+.Sh DESCRIPTION
+.Fn lua_rawget
+pops the key from the stack (putting the resulting value in its place).
+As in Lua, this function may trigger a metamethod for the
+.Qq index
+event.
+Similar to
+.Xr lua_gettable 3 ,
+but does a raw access
+.Pq i.e., without metamethods .
+.Sh SEE ALSO
+.Xr lua_gettable 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_rawget
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + c64320a743c39859e628cec980a0ccea8c47e0ec (mode 644)
--- /dev/null
+++ lua_rawget.3.html
@@ -0,0 +1,53 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_RAWGET(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_RAWGET(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_RAWGET(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_rawget</code> &#x2014;
+<div class="Nd" title="Nd">pops the key from the stack</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">lua_rawget</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_rawget</code>() pops the key from the stack
+  (putting the resulting value in its place). As in Lua, this function may
+  trigger a metamethod for the &#x201C;index&#x201D; event. Similar to
+  <a class="Xr" title="Xr">lua_gettable(3)</a>, but does a raw access (i.e.,
+  without metamethods).
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">lua_gettable(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_rawget</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 15, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 210bc84f2f1307e52d03bb5fcf2dddc516c08cf0 (mode 644)
--- /dev/null
+++ lua_rawgeti.3
@@ -0,0 +1,27 @@
+.Dd $Mdocdate: July 15 2022 $
+.Dt LUA_RAWGETI 3
+.Os
+.Sh NAME
+.Nm lua_rawgeti
+.Nd pushes onto the stack the value t[n], where t is the value at the given
+valid index
+.Sh SYNOPSIS
+.In lua.h
+.Ft void
+.Fn lua_rawgeti "lua_State *L" "int index" "int n"
+.Sh DESCRIPTION
+.Fn lua_rawgeti
+pushes onto the stack the value t[n], where t is the value at the given valid
+index.
+The access is raw; that is, it does not invoke metamethods.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_rawgeti
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 08c93585a730669a4a10d07c1a16d3fdf9c6ce75 (mode 644)
--- /dev/null
+++ lua_rawgeti.3.html
@@ -0,0 +1,51 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_RAWGETI(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_RAWGETI(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_RAWGETI(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_rawgeti</code> &#x2014;
+<div class="Nd" title="Nd">pushes onto the stack the value t[n], where t is the
+  value at the given valid index</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">lua_rawgeti</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  n</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_rawgeti</code>() pushes onto the stack the value
+  t[n], where t is the value at the given valid index. The access is raw; that
+  is, it does not invoke metamethods.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_rawgeti</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 15, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 11eb37a6186674287de7c2e8486a4693d4b69443 (mode 644)
--- /dev/null
+++ lua_rawset.3
@@ -0,0 +1,30 @@
+.Dd $Mdocdate: July 15 2022 $
+.Dt LUA_RAWSET 3
+.Os
+.Sh NAME
+.Nm lua_rawset
+.Nd pops both the key and the value from the stack
+.Sh SYNOPSIS
+.In lua.h
+.Ft void
+.Fn lua_rawset "lua_State *L" "int index"
+.Sh DESCRIPTION
+.Fn lua_rawset
+pops both the key and the value from the stack.
+As in Lua, this function may trigger a metamethod for the "newindex" event.
+Similar to
+.Xr lua_settable 3 ,
+but does a raw assignment
+.Pq i.e., without metamethods .
+.Sh SEE ALSO
+.Xr lua_settable 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_rawset
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + a65ed0bd0ffc8611062ee5bf3f235da7ff628e84 (mode 644)
--- /dev/null
+++ lua_rawset.3.html
@@ -0,0 +1,53 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_RAWSET(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_RAWSET(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_RAWSET(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_rawset</code> &#x2014;
+<div class="Nd" title="Nd">pops both the key and the value from the stack</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">lua_rawset</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_rawset</code>() pops both the key and the value
+  from the stack. As in Lua, this function may trigger a metamethod for the
+  &quot;newindex&quot; event. Similar to
+  <a class="Xr" title="Xr">lua_settable(3)</a>, but does a raw assignment (i.e.,
+  without metamethods).
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">lua_settable(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_rawset</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 15, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + b4effe0f9cbefba58e41c9d604e7282d0e3d9164 (mode 644)
--- /dev/null
+++ lua_rawseti.3
@@ -0,0 +1,28 @@
+.Dd $Mdocdate: July 15 2022 $
+.Dt LUA_RAWSETI 3
+.Os
+.Sh NAME
+.Nm lua_rawseti
+.Nd pops the value from the stack
+.Sh SYNOPSIS
+.In lua.h
+.Ft void
+.Fn lua_rawseti "lua_State *L" "int index" "int n"
+.Sh DESCRIPTION
+.Fn lua_rawseti
+does the equivalent of t[n] = v, where t is the value at the given valid index
+and v is the value at the top of the stack.
+.Pp
+This function pops the value from the stack.
+The assignment is raw; that is, it does not invoke metamethods.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_rawseti
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 4b0132f7add25926a3e83ab2762ccac40e703611 (mode 644)
--- /dev/null
+++ lua_rawseti.3.html
@@ -0,0 +1,53 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_RAWSETI(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_RAWSETI(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_RAWSETI(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_rawseti</code> &#x2014;
+<div class="Nd" title="Nd">pops the value from the stack</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">lua_rawseti</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  n</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_rawseti</code>() does the equivalent of t[n] =
+  v, where t is the value at the given valid index and v is the value at the top
+  of the stack.
+<div class="Pp"></div>
+This function pops the value from the stack. The assignment is raw; that is, it
+  does not invoke metamethods.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_rawseti</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 15, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + f73671cf2df665d0623d8bebdac334ab6cd615c1 (mode 644)
--- /dev/null
+++ lua_register.3
@@ -0,0 +1,31 @@
+.Dd $Mdocdate: July 18 2022 $
+.Dt LUA_REGISTER 3
+.Os
+.Sh NAME
+.Nm lua_register
+.Nd sets the C function as the new value of global name
+.Sh SYNOPSIS
+.In lua.h
+.Ft void
+.Fn lua_register "lua_State *L" "const char *name" "lua_CFunction f"
+.Sh DESCRIPTION
+.Fn lua_register
+sets the C function
+.Fa f
+as the new value of global name.
+It is defined as a macro:
+.Pp
+.Bd -literal -offset indent -compact
+#define lua_register(L,n,f) (lua_pushcfunction(L, f), lua_setglobal(L, n))
+.Ed
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_register
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + bde49108c7e1fa362d6e7a17697214a6989cace9 (mode 644)
--- /dev/null
+++ lua_register.3.html
@@ -0,0 +1,58 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_REGISTER(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_REGISTER(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_REGISTER(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_register</code> &#x2014;
+<div class="Nd" title="Nd">sets the C function as the new value of global
+  name</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">lua_register</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const char
+  *name</var>,
+  <var class="Fa" title="Fa" style="white-space: nowrap;">lua_CFunction
+  f</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_register</code>() sets the C function
+  <var class="Fa" title="Fa">f</var> as the new value of global name. It is
+  defined as a macro:
+<div class="Pp"></div>
+<div class="Bd Bd-indent">
+<pre class="Li">
+#define lua_register(L,n,f) (lua_pushcfunction(L, f), lua_setglobal(L, n))
+</pre>
+</div>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_register</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 18, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + b9cc54e0ea89fcfdb8ab14d458571150374265be (mode 644)
--- /dev/null
+++ lua_remove.3
@@ -0,0 +1,27 @@
+.Dd $Mdocdate: July 15 2022 $
+.Dt LUA_REMOVE 3
+.Os
+.Sh NAME
+.Nm lua_remove
+.Nd removes the element at the given index
+.Sh SYNOPSIS
+.In lua.h
+.Ft void
+.Fn lua_remove "lua_State *L" "int index"
+.Sh DESCRIPTION
+.Fn lua_remove
+removes the element at the given valid index, shifting down the elements above
+this index to fill the gap.
+Cannot be called with a pseudo-index, because a pseudo-index is not an actual
+stack position.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_remove
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 5e9a5529279fb0da4ed0e470333e49bc14d52c9d (mode 644)
--- /dev/null
+++ lua_remove.3.html
@@ -0,0 +1,50 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_REMOVE(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_REMOVE(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_REMOVE(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_remove</code> &#x2014;
+<div class="Nd" title="Nd">removes the element at the given index</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">lua_remove</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_remove</code>() removes the element at the given
+  valid index, shifting down the elements above this index to fill the gap.
+  Cannot be called with a pseudo-index, because a pseudo-index is not an actual
+  stack position.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_remove</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 15, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 6cc484531f2a74a22718a52543f6ef691ce5d894 (mode 644)
--- /dev/null
+++ lua_replace.3
@@ -0,0 +1,25 @@
+.Dd $Mdocdate: July 15 2022 $
+.Dt LUA_REPLACE 3
+.Os
+.Sh NAME
+.Nm lua_replace
+.Nd moves the top element into the given position
+.Sh SYNOPSIS
+.In lua.h
+.Ft void
+.Fn lua_replace "lua_State *L" "int index"
+.Sh DESCRIPTION
+.Fn lua_replace
+moves the top element into the given position (and pops it), without shifting
+any element (therefore replacing the value at the given position).
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_replace
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 1d646ed5c7e44b94a4195ebd2ae4ce169c121aa3 (mode 644)
--- /dev/null
+++ lua_replace.3.html
@@ -0,0 +1,49 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_REPLACE(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_REPLACE(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_REPLACE(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_replace</code> &#x2014;
+<div class="Nd" title="Nd">moves the top element into the given position</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">lua_replace</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_replace</code>() moves the top element into the
+  given position (and pops it), without shifting any element (therefore
+  replacing the value at the given position).
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_replace</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 15, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 1b11d900fbe1d62a3245ecdc152da5009ffd62bf (mode 644)
--- /dev/null
+++ lua_resume.3
@@ -0,0 +1,49 @@
+.Dd $Mdocdate: July 15 2022 $
+.Dt LUA_RESUME 3
+.Os
+.Sh NAME
+.Nm lua_resume
+.Nd starts and resumes a coroutine in a given thread
+.Sh SYNOPSIS
+.In lua.h
+.Ft int
+.Fn lua_resume "lua_State *L" "int narg"
+.Sh DESCRIPTION
+.Fn lua_resume
+starts and resumes a coroutine in a given thread.
+.Pp
+To start a coroutine, you first create a new thread (see
+.Xr lua_newthread 3 );
+then you push onto its stack the main function plus any arguments; then you
+call lua_resume, with narg being the number of arguments.
+This call returns when the coroutine suspends or finishes its execution.
+When it returns, the stack contains all values passed to
+.Xr lua_yield 3 ,
+or all values returned by the body function.
+In case of errors, the stack is not unwound,
+so you can use the debug API over it.
+The error message is on the top of the stack.
+To restart a coroutine, you put on its stack only the values to be passed as
+results from yield, and then call lua_resume.
+.Sh RETURN VALUES
+.Fn lua_resume
+returns
+.Dv LUA_YIELD
+if the coroutine yields, 0 if the coroutine finishes its execution without
+errors, or an error code in case of errors (see
+.Xr lua_pcall 3
+).
+.Sh SEE ALSO
+.Xr lua_newthread 3 ,
+.Xr lua_pcall 3 ,
+.Xr lua_yield 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_resume
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + dcd711db2c4ab3550b103c7680d2716b0c467c94 (mode 644)
--- /dev/null
+++ lua_resume.3.html
@@ -0,0 +1,70 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_RESUME(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_RESUME(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_RESUME(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_resume</code> &#x2014;
+<div class="Nd" title="Nd">starts and resumes a coroutine in a given
+  thread</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">lua_resume</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  narg</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_resume</code>() starts and resumes a coroutine
+  in a given thread.
+<div class="Pp"></div>
+To start a coroutine, you first create a new thread (see
+  <a class="Xr" title="Xr">lua_newthread(3)</a> ); then you push onto its stack
+  the main function plus any arguments; then you call lua_resume, with narg
+  being the number of arguments. This call returns when the coroutine suspends
+  or finishes its execution. When it returns, the stack contains all values
+  passed to <a class="Xr" title="Xr">lua_yield(3)</a>, or all values returned by
+  the body function. In case of errors, the stack is not unwound, so you can use
+  the debug API over it. The error message is on the top of the stack. To
+  restart a coroutine, you put on its stack only the values to be passed as
+  results from yield, and then call lua_resume.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+<code class="Fn" title="Fn">lua_resume</code>() returns
+  <code class="Dv" title="Dv">LUA_YIELD</code> if the coroutine yields, 0 if the
+  coroutine finishes its execution without errors, or an error code in case of
+  errors (see <a class="Xr" title="Xr">lua_pcall(3)</a> ).
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">lua_newthread(3)</a>,
+  <a class="Xr" title="Xr">lua_pcall(3)</a>,
+  <a class="Xr" title="Xr">lua_yield(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_resume</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 15, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + d4b25e79bd47b176767e16b7b916b64a19872923 (mode 644)
--- /dev/null
+++ lua_setallocf.3
@@ -0,0 +1,27 @@
+.Dd $Mdocdate: July 15 2022 $
+.Dt LUA_SETALLOCF 3
+.Os
+.Sh NAME
+.Nm lua_setallocf
+.Nd changes the allocator function
+.Sh SYNOPSIS
+.In lua.h
+.Ft void
+.Fn lua_setallocf "lua_State *L" "lua_Alloc f" "void *ud"
+.Sh DESCRIPTION
+.Fn lua_setallocf
+changes the allocator function of a given state to
+.Fa f
+with user data
+.Fa ud .
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_setallocf
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 7be37995f23efeb2681e11fd104ecd85ef20800a (mode 644)
--- /dev/null
+++ lua_setallocf.3.html
@@ -0,0 +1,50 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_SETALLOCF(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_SETALLOCF(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_SETALLOCF(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_setallocf</code> &#x2014;
+<div class="Nd" title="Nd">changes the allocator function</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">lua_setallocf</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">lua_Alloc
+  f</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">void
+  *ud</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_setallocf</code>() changes the allocator
+  function of a given state to <var class="Fa" title="Fa">f</var> with user data
+  <var class="Fa" title="Fa">ud</var>.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_setallocf</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 15, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + a6eae2a7ede82d3d02e8de52c9987543e269bbb0 (mode 644)
--- /dev/null
+++ lua_setfenv.3
@@ -0,0 +1,31 @@
+.Dd $Mdocdate: July 15 2022 $
+.Dt LUA_SETFENV 3
+.Os
+.Sh NAME
+.Nm lua_setfenv
+.Nd pops a table from the stack and sets it as the new environment for the value
+.Sh SYNOPSIS
+.In lua.h
+.Ft int
+.Fn lua_setfenv "lua_State *L" "int index"
+.Sh DESCRIPTION
+.Fn lua_setfenv
+pops a table from the stack and sets it as the new environment for the value at
+the given index.
+.Sh RETURN VALUES
+If the value at the given index is neither a function nor a thread nor a
+userdata,
+.Fn lua_setfenv
+returns 0.
+Otherwise it returns 1.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_setfenv
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 07a08b3f68a7c3dea30f1485a09cdda6e827b07f (mode 644)
--- /dev/null
+++ lua_setfenv.3.html
@@ -0,0 +1,54 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_SETFENV(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_SETFENV(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_SETFENV(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_setfenv</code> &#x2014;
+<div class="Nd" title="Nd">pops a table from the stack and sets it as the new
+  environment for the value</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">lua_setfenv</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_setfenv</code>() pops a table from the stack and
+  sets it as the new environment for the value at the given index.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+If the value at the given index is neither a function nor a thread nor a
+  userdata, <code class="Fn" title="Fn">lua_setfenv</code>() returns 0.
+  Otherwise it returns 1.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_setfenv</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 15, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + cf4b172a77b851c2d71d8ebae61fae5fa1f4f4ed (mode 644)
--- /dev/null
+++ lua_setfield.3
@@ -0,0 +1,30 @@
+.Dd $Mdocdate: July 15 2022 $
+.Dt LUA_SETFIELD 3
+.Os
+.Sh NAME
+.Nm lua_setfield
+.Nd pops the value from the stack
+.Sh SYNOPSIS
+.In lua.h
+.Ft void
+.Fn lua_setfield "lua_State *L" "int index" "const char *k"
+.Sh DESCRIPTION
+.Fn lua_setfield
+does the equivalent to t[k] = v, where t is the value at the given valid index
+and v is the value at the top of the stack.
+.Pp
+This function pops the value from the stack.
+As in Lua, this function may trigger a metamethod for the
+.Qq newindex
+event.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_setfield
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 83fdeb6b4e746db5b5a349c1f16d5efb51c74a39 (mode 644)
--- /dev/null
+++ lua_setfield.3.html
@@ -0,0 +1,53 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_SETFIELD(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_SETFIELD(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_SETFIELD(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_setfield</code> &#x2014;
+<div class="Nd" title="Nd">pops the value from the stack</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">lua_setfield</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const
+  char *k</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_setfield</code>() does the equivalent to t[k] =
+  v, where t is the value at the given valid index and v is the value at the top
+  of the stack.
+<div class="Pp"></div>
+This function pops the value from the stack. As in Lua, this function may
+  trigger a metamethod for the &#x201C;newindex&#x201D; event.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_setfield</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 15, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 5264535d58e3b221f07d5ede88268c01ecbf99e4 (mode 644)
--- /dev/null
+++ lua_setglobal.3
@@ -0,0 +1,27 @@
+.Dd $Mdocdate: July 20 2022 $
+.Dt LUA_SETGLOBAL 3
+.Os
+.Sh NAME
+.Nm lua_setglobal
+.Nd pops a value from the stack and sets it as the new value of global name
+.Sh SYNOPSIS
+.In lua.h
+.Ft void
+.Fn lua_setglobal "lua_State *L" "const char *name"
+.Sh DESCRIPTION
+.Fn lua_setglobal
+pops a value from the stack and sets it as the new value of global name.
+It is defined as a macro:
+.Pp
+.Fd #define lua_setglobal(L,s)   lua_setfield(L, LUA_GLOBALSINDEX, s)
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_setglobal
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 3fb204ea1639a67066b2d47fd6267d25b261687f (mode 644)
--- /dev/null
+++ lua_setglobal.3.html
@@ -0,0 +1,52 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_SETGLOBAL(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_SETGLOBAL(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_SETGLOBAL(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_setglobal</code> &#x2014;
+<div class="Nd" title="Nd">pops a value from the stack and sets it as the new
+  value of global name</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">lua_setglobal</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">const char
+  *name</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_setglobal</code>() pops a value from the stack
+  and sets it as the new value of global name. It is defined as a macro:
+<div class="Pp"></div>
+<code class="Fd" title="Fd">#define lua_setglobal(L,s) lua_setfield(L,
+  LUA_GLOBALSINDEX, s)</code>
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_setglobal</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 20, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 005ef1505add9b2fa718f381d293e34ffd3037b2 (mode 644)
--- /dev/null
+++ lua_sethook.3
@@ -0,0 +1,54 @@
+.Dd $Mdocdate: July 18 2022 $
+.Dt LUA_SETHOOK 3
+.Os
+.Sh NAME
+.Nm lua_sethook
+.Nd sets the debugging hook function
+.Sh SYNOPSIS
+.In fcntl.h
+.Ft int
+.Fn lua_sethook "lua_State *L" "lua_Hook f" "int mask" "int count"
+.Sh DESCRIPTION
+.Fn lua_sethook
+sets the debugging hook function.
+.Pp
+Argument f is the hook function. mask specifies on which events the hook will
+be called: it is formed by a bitwise or of the constants
+.Dv LUA_MASKCALL ,
+.Dv LUA_MASKRET ,
+.Dv LUA_MASKLINE ,
+and
+.Dv LUA_MASKCOUNT .
+The count argument is only meaningful when the mask includes
+.Dv LUA_MASKCOUNT .
+For each event, the hook is called as explained below:
+.Bl -tag -width "The return hook:"
+.It Sy The call hook:
+is called when the interpreter calls a function.
+The hook is called just after Lua enters the new function, before the function
+gets its arguments.
+.It Sy The return hook:
+is called when the interpreter returns from a function.
+The hook is called just before Lua leaves the function.
+You have no access to the values to be returned by the function.
+.It Sy The line hook:
+is called when the interpreter is about to start the execution of a new line of
+code, or when it jumps back in the code (even to the same line).
+(This event only happens while Lua is executing a Lua function.)
+.It Sy The count hook:
+is called after the interpreter executes every count instructions.
+(This event only happens while Lua is executing a Lua function.)
+.El
+.Pp
+A hook is disabled by setting mask to zero.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_sethook
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 798851f82d85a07efe66cfd7362c9f6954533d58 (mode 644)
--- /dev/null
+++ lua_sethook.3.html
@@ -0,0 +1,87 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_SETHOOK(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_SETHOOK(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_SETHOOK(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_sethook</code> &#x2014;
+<div class="Nd" title="Nd">sets the debugging hook function</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">fcntl.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">lua_sethook</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">lua_Hook
+  f</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  mask</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  count</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_sethook</code>() sets the debugging hook
+  function.
+<div class="Pp"></div>
+Argument f is the hook function. mask specifies on which events the hook will be
+  called: it is formed by a bitwise or of the constants
+  <code class="Dv" title="Dv">LUA_MASKCALL</code>,
+  <code class="Dv" title="Dv">LUA_MASKRET</code>,
+  <code class="Dv" title="Dv">LUA_MASKLINE</code>, and
+  <code class="Dv" title="Dv">LUA_MASKCOUNT</code>. The count argument is only
+  meaningful when the mask includes
+  <code class="Dv" title="Dv">LUA_MASKCOUNT</code>. For each event, the hook is
+  called as explained below:
+<dl class="Bl-tag">
+  <dt>&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt><b class="Sy" title="Sy">The call hook:</b></dt>
+  <dd>is called when the interpreter calls a function. The hook is called just
+      after Lua enters the new function, before the function gets its
+    arguments.</dd>
+  <dt>&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt><b class="Sy" title="Sy">The return hook:</b></dt>
+  <dd>is called when the interpreter returns from a function. The hook is called
+      just before Lua leaves the function. You have no access to the values to
+      be returned by the function.</dd>
+  <dt>&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt><b class="Sy" title="Sy">The line hook:</b></dt>
+  <dd>is called when the interpreter is about to start the execution of a new
+      line of code, or when it jumps back in the code (even to the same line).
+      (This event only happens while Lua is executing a Lua function.)</dd>
+  <dt>&#x00A0;</dt>
+  <dd>&#x00A0;</dd>
+  <dt><b class="Sy" title="Sy">The count hook:</b></dt>
+  <dd>is called after the interpreter executes every count instructions. (This
+      event only happens while Lua is executing a Lua function.)</dd>
+</dl>
+<div class="Pp"></div>
+A hook is disabled by setting mask to zero.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_sethook</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 18, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 676fe0d26db5336641c8e2e54fe54ec80e0c41ad (mode 644)
--- /dev/null
+++ lua_setlocal.3
@@ -0,0 +1,38 @@
+.Dd $Mdocdate: July 13 2022 $
+.Dt LUA_SETLOCAL 3
+.Os
+.Sh NAME
+.Nm lua_setlocal
+.Nd sets the value of a local variable of a given activation record
+.Sh SYNOPSIS
+.In lua.h
+.Ft const char *
+.Fn lua_setlocal "lua_State  *L" "lua_Debug *ar" "int n"
+.Sh DESCRIPTION
+.Fn lua_setlocal
+sets the value of a local variable of a given activation record.
+Parameters
+.Fa ar
+and
+.Fa n
+are as in
+.Xr lua_getlocal 3 .
+.Fn lua_setlocal
+assigns the value at the top of the stack to the variable and returns its name.
+It also pops the value from the stack.
+.Sh RETURN VALUES
+Returns
+.Dv NULL
+.Pq and pops nothing
+when the index is greater than the number of active local variables.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_setlocal
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 4461427693b95a9d62a75ee6b1540f5cbdeea150 (mode 644)
--- /dev/null
+++ lua_setlocal.3.html
@@ -0,0 +1,59 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_SETLOCAL(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_SETLOCAL(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_SETLOCAL(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_setlocal</code> &#x2014;
+<div class="Nd" title="Nd">sets the value of a local variable of a given
+  activation record</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">const char *</var>
+<br/>
+<code class="Fn" title="Fn">lua_setlocal</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">lua_Debug
+  *ar</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  n</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_setlocal</code>() sets the value of a local
+  variable of a given activation record. Parameters
+  <var class="Fa" title="Fa">ar</var> and <var class="Fa" title="Fa">n</var> are
+  as in <a class="Xr" title="Xr">lua_getlocal(3)</a>.
+  <code class="Fn" title="Fn">lua_setlocal</code>() assigns the value at the top
+  of the stack to the variable and returns its name. It also pops the value from
+  the stack.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+Returns <code class="Dv" title="Dv">NULL</code> (and pops nothing) when the
+  index is greater than the number of active local variables.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_setlocal</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 13, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 29833649d3742e28c1a6480a47f443ce3965ce27 (mode 644)
--- /dev/null
+++ lua_setmetatable.3
@@ -0,0 +1,25 @@
+.Dd $Mdocdate: July 15 2022 $
+.Dt LUA_SETMETATABLE 3
+.Os
+.Sh NAME
+.Nm lua_setmetatable
+.Nd pops a table from the stack and sets it as the new metatable for the value
+.Sh SYNOPSIS
+.In lua.h
+.Ft int
+.Fn lua_setmetatable "lua_State *L" "int index"
+.Sh DESCRIPTION
+.Fn lua_setmetatable
+pops a table from the stack and sets it as the new metatable for the value at
+the given acceptable index.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_setmetatable
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + e18229e41275ac16d7134af06abf4605e0ae84fd (mode 644)
--- /dev/null
+++ lua_setmetatable.3.html
@@ -0,0 +1,50 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_SETMETATABLE(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_SETMETATABLE(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_SETMETATABLE(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_setmetatable</code> &#x2014;
+<div class="Nd" title="Nd">pops a table from the stack and sets it as the new
+  metatable for the value</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">lua_setmetatable</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_setmetatable</code>() pops a table from the
+  stack and sets it as the new metatable for the value at the given acceptable
+  index.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_setmetatable</code>() manual page was
+  written by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 15, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + b87ad7eb242f958f3f8586930fa799c6c822beed (mode 644)
--- /dev/null
+++ lua_settable.3
@@ -0,0 +1,30 @@
+.Dd $Mdocdate: July 15 2022 $
+.Dt LUA_SETTABLE 3
+.Os
+.Sh NAME
+.Nm lua_settable
+.Nd pops both the key and the value from the stack
+.Sh SYNOPSIS
+.In lua.h
+.Ft void
+.Fn lua_settable "lua_State *L" "int index"
+.Sh DESCRIPTION
+.Fn lua_settable
+does the equivalent to t[k] = v, where t is the value at the given valid index,
+v is the value at the top of the stack, and k is the value just below the top.
+.Pp
+This function pops both the key and the value from the stack.
+As in Lua, this function may trigger a metamethod for the
+.Qq newindex
+event.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_settable
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + de6b8ba98ccd0be1583e948fa10de3e4ce43a709 (mode 644)
--- /dev/null
+++ lua_settable.3.html
@@ -0,0 +1,52 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_SETTABLE(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_SETTABLE(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_SETTABLE(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_settable</code> &#x2014;
+<div class="Nd" title="Nd">pops both the key and the value from the stack</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">lua_settable</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_settable</code>() does the equivalent to t[k] =
+  v, where t is the value at the given valid index, v is the value at the top of
+  the stack, and k is the value just below the top.
+<div class="Pp"></div>
+This function pops both the key and the value from the stack. As in Lua, this
+  function may trigger a metamethod for the &#x201C;newindex&#x201D; event.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_settable</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 15, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + a55ce5ac46bbe39316653234576ba940675631ef (mode 644)
--- /dev/null
+++ lua_settop.3
@@ -0,0 +1,28 @@
+.Dd $Mdocdate: July 15 2022 $
+.Dt LUA_SETTOP 3
+.Os
+.Sh NAME
+.Nm lua_settop
+.Nd sets the stack top to the index
+.Sh SYNOPSIS
+.In lua.h
+.Ft void
+.Fn lua_settop "lua_State *L" "int index"
+.Sh DESCRIPTION
+.Fn lua_settop
+accepts any acceptable index, or 0, and sets the stack top to this index.
+If the new top is larger than the old one, then the new elements are filled
+with
+.Dv nil .
+If index is 0, then all stack elements are removed.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_settop
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + bd328f28c2866512f68a7774cd7349bd35fcef04 (mode 644)
--- /dev/null
+++ lua_settop.3.html
@@ -0,0 +1,51 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_SETTOP(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_SETTOP(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_SETTOP(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_settop</code> &#x2014;
+<div class="Nd" title="Nd">sets the stack top to the index</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">lua_settop</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_settop</code>() accepts any acceptable index, or
+  0, and sets the stack top to this index. If the new top is larger than the old
+  one, then the new elements are filled with
+  <code class="Dv" title="Dv">nil</code>. If index is 0, then all stack elements
+  are removed.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_settop</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 15, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 58f26fc7602077b7e938209c5e87a7a526c46271 (mode 644)
--- /dev/null
+++ lua_setupvalue.3
@@ -0,0 +1,38 @@
+.Dd $Mdocdate: July 13 2022 $
+.Dt LUA_SETUPVALUE 3
+.Os
+.Sh NAME
+.Nm lua_setupvalue
+.Nd sets the value of a closure's upvalue
+.Sh SYNOPSIS
+.In lua.h
+.Ft const char *
+.Fn lua_setupvalue "lua_State *L" "int funcindex" "int n"
+.Sh DESCRIPTION
+.Fn lua_setupvalue
+sets the value of a closure's upvalue.
+It assigns the value at the top of the stack to the upvalue and returns its
+name.
+It also pops the value from the stack.
+Parameters
+.Fa funcindex
+and
+.Fa n
+are as in the
+.Xr lua_getupvalue 3 .
+.Sh RETURN VALUES
+Returns
+.Dv NULL
+.Pq and pops nothing
+when the index is greater than the number of upvalues.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_setupvalue
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 0053db79e2a421a64802c94e7c04bd9cd5ecd163 (mode 644)
--- /dev/null
+++ lua_setupvalue.3.html
@@ -0,0 +1,57 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_SETUPVALUE(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_SETUPVALUE(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_SETUPVALUE(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_setupvalue</code> &#x2014;
+<div class="Nd" title="Nd">sets the value of a closure's upvalue</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">const char *</var>
+<br/>
+<code class="Fn" title="Fn">lua_setupvalue</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  funcindex</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  n</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_setupvalue</code>() sets the value of a
+  closure's upvalue. It assigns the value at the top of the stack to the upvalue
+  and returns its name. It also pops the value from the stack. Parameters
+  <var class="Fa" title="Fa">funcindex</var> and
+  <var class="Fa" title="Fa">n</var> are as in the
+  <a class="Xr" title="Xr">lua_getupvalue(3)</a>.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+Returns <code class="Dv" title="Dv">NULL</code> (and pops nothing) when the
+  index is greater than the number of upvalues.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_setupvalue</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 13, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 2887a2be67be7fa3779fb8a6db583989fe6b11de (mode 644)
--- /dev/null
+++ lua_status.3
@@ -0,0 +1,29 @@
+.Dd $Mdocdate: July 14 2022 $
+.Dt LUA_STATUS 3
+.Os
+.Sh NAME
+.Nm lua_status
+.Nd returns the status of the thread L
+.Sh SYNOPSIS
+.In lua.h
+.Ft int
+.Fn lua_status "lua_State *L"
+.Sh DESCRIPTION
+.Fn lua_status
+returns the status of the thread L.
+.Sh RETURN VALUES
+The status can be 0 for a normal thread, an error code if the thread finished
+its execution with an error, or
+.Dv LUA_YIELD
+if the thread is suspended.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_status
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + bfedf774065b128c7fdf122b063953548f031832 (mode 644)
--- /dev/null
+++ lua_status.3.html
@@ -0,0 +1,52 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_STATUS(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_STATUS(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_STATUS(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_status</code> &#x2014;
+<div class="Nd" title="Nd">returns the status of the thread L</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">lua_status</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_status</code>() returns the status of the thread
+  L.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+The status can be 0 for a normal thread, an error code if the thread finished
+  its execution with an error, or <code class="Dv" title="Dv">LUA_YIELD</code>
+  if the thread is suspended.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_status</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 14, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 4ff5281457f98fd89a4f14ac7be4ed577ceb45ec (mode 644)
--- /dev/null
+++ lua_toboolean.3
@@ -0,0 +1,38 @@
+.Dd $Mdocdate: July 14 2022 $
+.Dt LUA_TOBOOLEAN 3
+.Os
+.Sh NAME
+.Nm lua_toboolean
+.Nd converts the Lua value to a C boolean value
+.Sh SYNOPSIS
+.In lua.h
+.Ft int
+.Fn lua_toboolean "lua_State *L" "int index"
+.Sh DESCRIPTION
+.Fn lua_toboolean
+converts the Lua value at the given acceptable index to a C boolean value (0 or
+1).
+.Sh RETURN VALUES
+Like all tests in Lua,
+.Fn lua_toboolean
+returns 1 for any Lua value different from
+.Sy false
+and
+.Sy nil ;
+otherwise it returns 0.
+It also returns 0 when called with a non-valid index.
+(If you want to accept only actual boolean values, use
+.Xr lua_isboolean 3
+to test the value's type.)
+.Sh SEE ALSO
+.Xr lua_isboolean 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_toboolean
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 2ad766fc1eee3a5eef43b1ba93f9132d8fe2a345 (mode 644)
--- /dev/null
+++ lua_toboolean.3.html
@@ -0,0 +1,58 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_TOBOOLEAN(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_TOBOOLEAN(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_TOBOOLEAN(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_toboolean</code> &#x2014;
+<div class="Nd" title="Nd">converts the Lua value to a C boolean value</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">lua_toboolean</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_toboolean</code>() converts the Lua value at the
+  given acceptable index to a C boolean value (0 or 1).
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+Like all tests in Lua, <code class="Fn" title="Fn">lua_toboolean</code>()
+  returns 1 for any Lua value different from <b class="Sy" title="Sy">false</b>
+  and <b class="Sy" title="Sy">nil</b>; otherwise it returns 0. It also returns
+  0 when called with a non-valid index. (If you want to accept only actual
+  boolean values, use <a class="Xr" title="Xr">lua_isboolean(3)</a> to test the
+  value's type.)
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">lua_isboolean(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_toboolean</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 14, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 17e600499347cc0bf82249e7820b3b82b1804daf (mode 644)
--- /dev/null
+++ lua_tocfunction.3
@@ -0,0 +1,27 @@
+.Dd $Mdocdate: July 14 2022 $
+.Dt LUA_TOCFUNCTION 3
+.Os
+.Sh NAME
+.Nm lua_tocfunction
+.Nd converts a value to a C function
+.Sh SYNOPSIS
+.In lua.h
+.Ft lua_CFunction
+.Fn lua_tocfunction "lua_State *L" "int index"
+.Sh DESCRIPTION
+.Fn lua_tocfunction
+converts a value at the given acceptable index to a C function.
+.Sh RETURN VALUES
+That value must be a C function; otherwise, returns
+.Dv NULL .
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_tocfunction
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 61e7b2d122fd2ab37d9f453633b6266eb87bd4ca (mode 644)
--- /dev/null
+++ lua_tocfunction.3.html
@@ -0,0 +1,52 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_TOCFUNCTION(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_TOCFUNCTION(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_TOCFUNCTION(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_tocfunction</code> &#x2014;
+<div class="Nd" title="Nd">converts a value to a C function</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">lua_CFunction</var>
+<br/>
+<code class="Fn" title="Fn">lua_tocfunction</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_tocfunction</code>() converts a value at the
+  given acceptable index to a C function.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+That value must be a C function; otherwise, returns
+  <code class="Dv" title="Dv">NULL</code>.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_tocfunction</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 14, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + d54ea07f906da5102fc9479cc7d40baea4f7b239 (mode 644)
--- /dev/null
+++ lua_tointeger.3
@@ -0,0 +1,33 @@
+.Dd $Mdocdate: July 14 2022 $
+.Dt LUA_TOINTEGER 3
+.Os
+.Sh NAME
+.Nm lua_tointeger
+.Nd converts the Lua value to the signed integral type
+.Sh SYNOPSIS
+.In lua.h
+.Ft lua_Integer
+.Fn lua_tointeger "lua_State *L" "int index"
+.Sh DESCRIPTION
+.Fn lua_tointeger
+converts the Lua value at the given acceptable index to the signed integral
+type
+.Xr lua_Integer 3 .
+.Sh RETURN VALUES
+The Lua value must be a number or a string convertible to a number; otherwise,
+.Fn lua_tointeger
+returns 0.
+.Pp
+If the number is not an integer, it is truncated in some non-specified way.
+.Sh SEE ALSO
+.Xr lua_Integer 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_tointeger
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 12d64c44201435af5c114c875c8d0bbe7ea2b1b1 (mode 644)
--- /dev/null
+++ lua_tointeger.3.html
@@ -0,0 +1,58 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_TOINTEGER(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_TOINTEGER(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_TOINTEGER(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_tointeger</code> &#x2014;
+<div class="Nd" title="Nd">converts the Lua value to the signed integral
+  type</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">lua_Integer</var>
+<br/>
+<code class="Fn" title="Fn">lua_tointeger</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_tointeger</code>() converts the Lua value at the
+  given acceptable index to the signed integral type
+  <a class="Xr" title="Xr">lua_Integer(3)</a>.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+The Lua value must be a number or a string convertible to a number; otherwise,
+  <code class="Fn" title="Fn">lua_tointeger</code>() returns 0.
+<div class="Pp"></div>
+If the number is not an integer, it is truncated in some non-specified way.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">lua_Integer(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_tointeger</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 14, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 73811601c6db30224f8766604e12c8d559707254 (mode 644)
--- /dev/null
+++ lua_tolstring.3
@@ -0,0 +1,52 @@
+.Dd $Mdocdate: July 14 2022 $
+.Dt LUA_TOLSTRING 3
+.Os
+.Sh NAME
+.Nm lua_tolstring
+.Nd converts the Lua value to a C string
+.Sh SYNOPSIS
+.In lua.h
+.Ft const char *
+.Fn lua_tolstring "lua_State *L" "int index" "size_t *len"
+.Sh DESCRIPTION
+.Fn lua_tolstring
+converts the Lua value at the given acceptable index to a C string.
+If
+.Fa len
+is not
+.Dv NULL ,
+it also sets
+.Fa *len
+with the string length.
+The Lua value must be a string or a number; otherwise, the function returns
+.Dv NULL .
+If the value is a number, then
+.Fn lua_tolstring
+also changes the actual value in the stack to a string.
+(This change confuses
+.Xr lua_next 3
+when
+.Fn lua_tolstring
+is applied to keys during a table traversal.)
+.Sh RETURN VALUES
+.Fn lua_tolstring
+returns a fully aligned pointer to a string inside the Lua state.
+This string always has a zero ('\\0') after its last character
+.Pq as in C ,
+but can contain other zeros in its body.
+Because Lua has garbage collection, there is no guarantee that the pointer
+returned by
+.Fn lua_tolstring
+will be valid after the corresponding value is removed from the stack.
+.Sh SEE ALSO
+.Xr lua_next 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_tolstring
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 074505e00093a2ef598e6f2e2aae8c22f250960d (mode 644)
--- /dev/null
+++ lua_tolstring.3.html
@@ -0,0 +1,68 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_TOLSTRING(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_TOLSTRING(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_TOLSTRING(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_tolstring</code> &#x2014;
+<div class="Nd" title="Nd">converts the Lua value to a C string</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">const char *</var>
+<br/>
+<code class="Fn" title="Fn">lua_tolstring</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">size_t
+  *len</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_tolstring</code>() converts the Lua value at the
+  given acceptable index to a C string. If <var class="Fa" title="Fa">len</var>
+  is not <code class="Dv" title="Dv">NULL</code>, it also sets
+  <var class="Fa" title="Fa">*len</var> with the string length. The Lua value
+  must be a string or a number; otherwise, the function returns
+  <code class="Dv" title="Dv">NULL</code>. If the value is a number, then
+  <code class="Fn" title="Fn">lua_tolstring</code>() also changes the actual
+  value in the stack to a string. (This change confuses
+  <a class="Xr" title="Xr">lua_next(3)</a> when
+  <code class="Fn" title="Fn">lua_tolstring</code>() is applied to keys during a
+  table traversal.)
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+<code class="Fn" title="Fn">lua_tolstring</code>() returns a fully aligned
+  pointer to a string inside the Lua state. This string always has a zero ('\0')
+  after its last character (as in C), but can contain other zeros in its body.
+  Because Lua has garbage collection, there is no guarantee that the pointer
+  returned by <code class="Fn" title="Fn">lua_tolstring</code>() will be valid
+  after the corresponding value is removed from the stack.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">lua_next(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_tolstring</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 14, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 772f99d171895b778eb81bd7cf3296d42fef587d (mode 644)
--- /dev/null
+++ lua_tonumber.3
@@ -0,0 +1,30 @@
+.Dd $Mdocdate: July 18 2022 $
+.Dt LUA_TONUMBER 3
+.Os
+.Sh NAME
+.Nm lua_tonumber
+.Nd converts the Lua value to the C type
+.Xr lua_Number 3
+.Sh SYNOPSIS
+.In lua.h
+.Ft lua_Number
+.Fn lua_tonumber "lua_State *L" "int index"
+.Sh DESCRIPTION
+.Fn lua_tonumber
+converts the Lua value at the given acceptable index to the C type
+.Xr lua_Number 3 .
+The Lua value must be a number or a string convertible to a number; otherwise,
+.Nm lua_tonumber
+returns 0.
+.Sh SEE ALSO
+.Xr lua_Number 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_tonumber
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 09460919092c4811bc4e476c12d3e47146a2e09f (mode 644)
--- /dev/null
+++ lua_tonumber.3.html
@@ -0,0 +1,54 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_TONUMBER(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_TONUMBER(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_TONUMBER(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_tonumber</code> &#x2014;
+<div class="Nd" title="Nd">converts the Lua value to the C type
+  <a class="Xr" title="Xr">lua_Number(3)</a></div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">lua_Number</var>
+<br/>
+<code class="Fn" title="Fn">lua_tonumber</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_tonumber</code>() converts the Lua value at the
+  given acceptable index to the C type
+  <a class="Xr" title="Xr">lua_Number(3)</a>. The Lua value must be a number or
+  a string convertible to a number; otherwise,
+  <code class="Nm" title="Nm">lua_tonumber</code> returns 0.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">lua_Number(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_tonumber</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 18, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + ac3dfd827da10bf4833354840c1aaa9c5cc904b0 (mode 644)
--- /dev/null
+++ lua_topointer.3
@@ -0,0 +1,32 @@
+.Dd $Mdocdate: July 18 2022 $
+.Dt LUA_TOPOINTER 3
+.Os
+.Sh NAME
+.Nm lua_topointer
+.Nd converts the value to a generic C pointer
+.Sh SYNOPSIS
+.In lua.h
+.Ft const void *
+.Fn lua_topointer "lua_State *L" "int index"
+.Sh DESCRIPTION
+.Fn lua_topointer
+converts the value at the given acceptable index to a generic C pointer (void*).
+The value can be a userdata, a table, a thread, or a function; otherwise,
+.Nm lua_topointer
+returns
+.Dv NULL .
+Different objects will give different pointers.
+There is no way to convert the pointer back to its original value.
+.Pp
+Typically this function is used only for debug information.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_topointer
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + b77da9da1dba5a10e83ecdf75c7e8cb1ac834b81 (mode 644)
--- /dev/null
+++ lua_topointer.3.html
@@ -0,0 +1,54 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_TOPOINTER(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_TOPOINTER(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_TOPOINTER(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_topointer</code> &#x2014;
+<div class="Nd" title="Nd">converts the value to a generic C pointer</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">const void *</var>
+<br/>
+<code class="Fn" title="Fn">lua_topointer</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_topointer</code>() converts the value at the
+  given acceptable index to a generic C pointer (void*). The value can be a
+  userdata, a table, a thread, or a function; otherwise,
+  <code class="Nm" title="Nm">lua_topointer</code> returns
+  <code class="Dv" title="Dv">NULL</code>. Different objects will give different
+  pointers. There is no way to convert the pointer back to its original value.
+<div class="Pp"></div>
+Typically this function is used only for debug information.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_topointer</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 18, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 495d487829b48eb8f2b93ba42449214cba4b18f0 (mode 644)
--- /dev/null
+++ lua_tostring.3
@@ -0,0 +1,30 @@
+.Dd $Mdocdate: July 15 2022 $
+.Dt LUA_TOSTRING 3
+.Os
+.Sh NAME
+.Nm lua_tostring
+.Nd converts the Lua value to a C string
+.Sh SYNOPSIS
+.In lua.h
+.Ft const char *
+.Fn lua_tostring "lua_State *L" "int index"
+.Sh DESCRIPTION
+.Fn lua_tostring
+converts the Lua value at the given acceptable index to a C string.
+.Pp
+Equivalent to
+.Xr lua_tolstring 3
+with len equal to
+.Dv NULL .
+.Sh SEE ALSO
+.Xr lua_tolstring 3
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_tostring
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 173199f9dbf25fb04bc9eb2b5cf91abe6f01ede0 (mode 644)
--- /dev/null
+++ lua_tostring.3.html
@@ -0,0 +1,53 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_TOSTRING(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_TOSTRING(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_TOSTRING(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_tostring</code> &#x2014;
+<div class="Nd" title="Nd">converts the Lua value to a C string</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">const char *</var>
+<br/>
+<code class="Fn" title="Fn">lua_tostring</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_tostring</code>() converts the Lua value at the
+  given acceptable index to a C string.
+<div class="Pp"></div>
+Equivalent to <a class="Xr" title="Xr">lua_tolstring(3)</a> with len equal to
+  <code class="Dv" title="Dv">NULL</code>.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<a class="Xr" title="Xr">lua_tolstring(3)</a>
+<div class="Pp"></div>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_tostring</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 15, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 936db681615845c5dcda478103b1a666e7563547 (mode 644)
--- /dev/null
+++ lua_tothread.3
@@ -0,0 +1,31 @@
+.Dd $Mdocdate: July 13 2022 $
+.Dt LUA_TOTHREAD 3
+.Os
+.Sh NAME
+.Nm lua_tothread
+.Nd converts the value to a Lua thread
+.Sh SYNOPSIS
+.In lua.h
+.Ft lua_State *
+.Fn lua_tothread "lua_State *L" "int index"
+.Sh DESCRIPTION
+.Fn lua_tothread
+converts the value at the given acceptable index to a Lua thread (represented
+as lua_State *).
+This value must be a thread; otherwise, the function returns
+.Dv NULL .
+.Sh RETURN VALUES
+Returns Lua thread represented as lua_State* and returns
+.Dv NULL
+when value is not a thread.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_gethook
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 190ffc83aec291e2ad6f03d935fa2f4ef5aef9dd (mode 644)
--- /dev/null
+++ lua_tothread.3.html
@@ -0,0 +1,54 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_TOTHREAD(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_TOTHREAD(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_TOTHREAD(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_tothread</code> &#x2014;
+<div class="Nd" title="Nd">converts the value to a Lua thread</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">lua_State *</var>
+<br/>
+<code class="Fn" title="Fn">lua_tothread</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_tothread</code>() converts the value at the
+  given acceptable index to a Lua thread (represented as lua_State *). This
+  value must be a thread; otherwise, the function returns
+  <code class="Dv" title="Dv">NULL</code>.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+Returns Lua thread represented as lua_State* and returns
+  <code class="Dv" title="Dv">NULL</code> when value is not a thread.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_gethook</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 13, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 7707705f62b672ea19a62a8dcc1a1406bb5fd12c (mode 644)
--- /dev/null
+++ lua_touserdata.3
@@ -0,0 +1,28 @@
+.Dd $Mdocdate: July 13 2022 $
+.Dt LUA_TOUSERDATA 3
+.Os
+.Sh NAME
+.Nm lua_touserdata
+.Nd returns address to userdata
+.Sh SYNOPSIS
+.In lua.h
+.Ft void *
+.Fn lua_touserdata "lua_State *L" "int index"
+.Sh DESCRIPTION
+If the value at the given acceptable index is a full userdata, returns its
+block address.
+.Sh RETURN VALUES
+If the value is a light userdata, returns its pointer.
+Otherwise, returns
+.Dv NULL .
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_touserdata
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 51a40bb1a996f85f39338f657a15f6c6dee342fb (mode 644)
--- /dev/null
+++ lua_touserdata.3.html
@@ -0,0 +1,52 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_TOUSERDATA(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_TOUSERDATA(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_TOUSERDATA(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_touserdata</code> &#x2014;
+<div class="Nd" title="Nd">returns address to userdata</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void *</var>
+<br/>
+<code class="Fn" title="Fn">lua_touserdata</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+If the value at the given acceptable index is a full userdata, returns its block
+  address.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+If the value is a light userdata, returns its pointer. Otherwise, returns
+  <code class="Dv" title="Dv">NULL</code>.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_touserdata</code>() manual page was written
+  by Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 13, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + 933f6e194efdc0289f9e3d49fbf0dc9b042db51c (mode 644)
--- /dev/null
+++ lua_type.3
@@ -0,0 +1,42 @@
+.Dd $Mdocdate: July 18 2022 $
+.Dt LUA_TYPE 3
+.Os
+.Sh NAME
+.Nm lua_type
+.Nd returns the type of the value
+.Sh SYNOPSIS
+.In lua.h
+.Ft int
+.Fn lua_type "lua_State *L" "int index"
+.Sh DESCRIPTION
+.Fn lua_type
+returns the type of the value in the given acceptable index, or
+.Dv LUA_TNONE
+for a non-valid index (that is, an index to an
+"empty"
+stack position).
+The types returned by
+.Nm lua_type
+are coded by the following constants defined in
+.In lua.h :
+.Dv LUA_TNIL ,
+.Dv LUA_TNUMBER ,
+.Dv LUA_TBOOLEAN ,
+.Dv LUA_TSTRING ,
+.Dv LUA_TTABLE ,
+.Dv LUA_TFUNCTION ,
+.Dv LUA_TUSERDATA ,
+.Dv LUA_TTHREAD ,
+and
+.Dv LUA_TLIGHTUSERDATA .
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_type
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 1d47f28cfab0a1f1f8505d019924af793f0b8968 (mode 644)
--- /dev/null
+++ lua_type.3.html
@@ -0,0 +1,61 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_TYPE(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_TYPE(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_TYPE(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_type</code> &#x2014;
+<div class="Nd" title="Nd">returns the type of the value</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">lua_type</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  index</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_type</code>() returns the type of the value in
+  the given acceptable index, or <code class="Dv" title="Dv">LUA_TNONE</code>
+  for a non-valid index (that is, an index to an &quot;empty&quot; stack
+  position). The types returned by <code class="Nm" title="Nm">lua_type</code>
+  are coded by the following constants defined in
+  <code class="In" title="In">&lt;<a class="In" title="In">lua.h</a>&gt;</code>:
+  <code class="Dv" title="Dv">LUA_TNIL</code>,
+  <code class="Dv" title="Dv">LUA_TNUMBER</code>,
+  <code class="Dv" title="Dv">LUA_TBOOLEAN</code>,
+  <code class="Dv" title="Dv">LUA_TSTRING</code>,
+  <code class="Dv" title="Dv">LUA_TTABLE</code>,
+  <code class="Dv" title="Dv">LUA_TFUNCTION</code>,
+  <code class="Dv" title="Dv">LUA_TUSERDATA</code>,
+  <code class="Dv" title="Dv">LUA_TTHREAD</code>, and
+  <code class="Dv" title="Dv">LUA_TLIGHTUSERDATA</code>.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_type</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 18, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + f6ba5c7c4ca4a90274a442eb94f79971aa0149e6 (mode 644)
--- /dev/null
+++ lua_typename.3
@@ -0,0 +1,29 @@
+.Dd $Mdocdate: July 13 2022 $
+.Dt LUA_TYPENAME 3
+.Os
+.Sh NAME
+.Nm lua_typename
+.Nd returns the name of the type encoded by the value
+.Sh SYNOPSIS
+.In lua.h
+.Ft const char *
+.Fn lua_typename "lua_State *L" "int tp"
+.Sh DESCRIPTION
+.Fn lua_typename
+returns the name of the type encoded by the value
+.Fa tp ,
+which must be one the values returned by
+.Xr lua_type 3 .
+.Sh RETURN VALUES
+Returns the name of the type encoded by the value.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_typename
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 79e4e1395ab2662c4ed8c38cf2645d01bf887609 (mode 644)
--- /dev/null
+++ lua_typename.3.html
@@ -0,0 +1,53 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_TYPENAME(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_TYPENAME(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_TYPENAME(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_typename</code> &#x2014;
+<div class="Nd" title="Nd">returns the name of the type encoded by the
+  value</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">const char *</var>
+<br/>
+<code class="Fn" title="Fn">lua_typename</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  tp</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_typename</code>() returns the name of the type
+  encoded by the value <var class="Fa" title="Fa">tp</var>, which must be one
+  the values returned by <a class="Xr" title="Xr">lua_type(3)</a>.
+<h1 class="Sh" title="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+  VALUES</a></h1>
+Returns the name of the type encoded by the value.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_typename</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 13, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + ae0105dee449476981fc259af737b98c88630045 (mode 644)
--- /dev/null
+++ lua_xmove.3
@@ -0,0 +1,26 @@
+.Dd $Mdocdate: July 13 2022 $
+.Dt LUA_XMOVE 3
+.Os
+.Sh NAME
+.Nm lua_xmove
+.Nd exchange values between different threads of the same global state
+.Sh SYNOPSIS
+.In lua.h
+.Ft void
+.Fn lua_xmove "lua_State *from" "lua_State *to" "int n"
+.Sh DESCRIPTION
+.Fn lua_xmove
+exchange values between different threads of the same global state.
+This function pops n values from the stack from, and pushes them onto the stack
+to.
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_xmove
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 0b328b5b1bb6925d136401ab440a45f9238a7582 (mode 644)
--- /dev/null
+++ lua_xmove.3.html
@@ -0,0 +1,51 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_XMOVE(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_XMOVE(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_XMOVE(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_xmove</code> &#x2014;
+<div class="Nd" title="Nd">exchange values between different threads of the same
+  global state</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">void</var>
+<br/>
+<code class="Fn" title="Fn">lua_xmove</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *from</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *to</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  n</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_xmove</code>() exchange values between different
+  threads of the same global state. This function pops n values from the stack
+  from, and pushes them onto the stack to.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_xmove</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 13, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>
blob - /dev/null
blob + be7bdd5a3d3e10cd5fa01ea8e83fe0b945910167 (mode 644)
--- /dev/null
+++ lua_yield.3
@@ -0,0 +1,39 @@
+.Dd $Mdocdate: July 18 2022 $
+.Dt LUA_YIELD 3
+.Os
+.Sh NAME
+.Nm lua_yield
+.Nd yields a coroutine
+.Sh SYNOPSIS
+.In lua.h
+.Ft int
+.Fn lua_yield "lua_State *L" "int nresults"
+.Sh DESCRIPTION
+.Fn lua_yield
+yields a coroutine.
+This function should only be called as the return expression of a C function,
+as follows:
+.Pp
+.Bd -literal -offset indent -compact
+return lua_yield (L, nresults);
+.Ed
+.Pp
+When a C function calls
+.Nm lua_yield
+in that way, the running coroutine suspends its execution, and the call to
+lua_resume that started this coroutine returns.
+The parameter
+.Fa nresults
+is the number of values from the stack that are passed as results to
+.Xr lua_resume 3 .
+.Sh SEE ALSO
+.Rs
+.%A Roberto Ierusalimschy
+.%A Luiz Henrique de Figueiredo
+.%A Waldemar Celes
+.%T Lua 5.1 Reference Manual
+.Re
+.Sh HISTORY
+The
+.Fn lua_yield
+manual page was written by Sergey Bronnikov.
blob - /dev/null
blob + 387cf8017db7dc41d81bcfe08cf19902ef33bd45 (mode 644)
--- /dev/null
+++ lua_yield.3.html
@@ -0,0 +1,61 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+  <link rel="stylesheet" href="style.css" type="text/css" media="all"/>
+  <title>LUA_YIELD(3)</title>
+</head>
+<body>
+<table class="head">
+  <tr>
+    <td class="head-ltitle">LUA_YIELD(3)</td>
+    <td class="head-vol">Library Functions Manual</td>
+    <td class="head-rtitle">LUA_YIELD(3)</td>
+  </tr>
+</table>
+<div class="manual-text">
+<h1 class="Sh" title="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<code class="Nm" title="Nm">lua_yield</code> &#x2014;
+<div class="Nd" title="Nd">yields a coroutine</div>
+<h1 class="Sh" title="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<code class="In" title="In">#include
+  &lt;<a class="In" title="In">lua.h</a>&gt;</code>
+<div class="Pp"></div>
+<var class="Ft" title="Ft">int</var>
+<br/>
+<code class="Fn" title="Fn">lua_yield</code>(<var class="Fa" title="Fa" style="white-space: nowrap;">lua_State
+  *L</var>, <var class="Fa" title="Fa" style="white-space: nowrap;">int
+  nresults</var>);
+<h1 class="Sh" title="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<code class="Fn" title="Fn">lua_yield</code>() yields a coroutine. This function
+  should only be called as the return expression of a C function, as follows:
+<div class="Pp"></div>
+<div class="Bd Bd-indent">
+<pre class="Li">
+return lua_yield (L, nresults);
+</pre>
+</div>
+<div class="Pp"></div>
+When a C function calls <code class="Nm" title="Nm">lua_yield</code> in that
+  way, the running coroutine suspends its execution, and the call to lua_resume
+  that started this coroutine returns. The parameter
+  <var class="Fa" title="Fa">nresults</var> is the number of values from the
+  stack that are passed as results to
+  <a class="Xr" title="Xr">lua_resume(3)</a>.
+<h1 class="Sh" title="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+  ALSO</a></h1>
+<cite class="Rs" title="Rs"><span class="RsA">Roberto Ierusalimschy</span>,
+  <span class="RsA">Luiz Henrique de Figueiredo</span>, and
+  <span class="RsA">Waldemar Celes</span>, <span class="RsT">Lua 5.1 Reference
+  Manual</span>.</cite>
+<h1 class="Sh" title="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+The <code class="Fn" title="Fn">lua_yield</code>() manual page was written by
+  Sergey Bronnikov.</div>
+<table class="foot">
+  <tr>
+    <td class="foot-date">July 18, 2022</td>
+    <td class="foot-os">Debian</td>
+  </tr>
+</table>
+</body>
+</html>