\hypertarget{ltablib_8c}{
\section{ltablib.c File Reference}
\label{ltablib_8c}\index{ltablib.c@{ltablib.c}}
}
{\tt \#include $<$stddef.h$>$}\par
{\tt \#include \char`\"{}lua.h\char`\"{}}\par
{\tt \#include \char`\"{}lauxlib.h\char`\"{}}\par
{\tt \#include \char`\"{}lualib.h\char`\"{}}\par
\subsection*{Defines}
\begin{CompactItemize}
\item 
\#define \hyperlink{ltablib_8c_140da27fde6d0c6ba8c94f2464c570cb}{ltablib\_\-c}
\item 
\#define \hyperlink{ltablib_8c_884b19ad6094d6238c4072a8064aeb12}{LUA\_\-LIB}
\item 
\#define \hyperlink{ltablib_8c_e1ce7442009a6ca3293041d7eca98a74}{aux\_\-getn}(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, n)~(luaL\_\-checktype(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, n, LUA\_\-TTABLE), luaL\_\-getn(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, n))
\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
static int \hyperlink{ltablib_8c_8b9f1cb816cce65b8fa88e8cd978fde3}{foreachi} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})
\item 
static int \hyperlink{ltablib_8c_fde2e0781c200e4b78fabbe13e8b9e57}{foreach} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})
\item 
static int \hyperlink{ltablib_8c_ae6fc93d5965729560abe284447c57ac}{maxn} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})
\item 
static int \hyperlink{ltablib_8c_0fb789287b24f4a8493ab35131c50ee2}{getn} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})
\item 
static int \hyperlink{ltablib_8c_bc2410ba356a21a7d956e95eecb77d70}{setn} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})
\item 
static int \hyperlink{ltablib_8c_214ed6966e2b1b4c376ab0de0d09032e}{tinsert} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})
\item 
static int \hyperlink{ltablib_8c_d8c41fe887a472709c6fdf075ba39d56}{tremove} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})
\item 
static void \hyperlink{ltablib_8c_4ea6cc51c099ea709c7755a49216f4d0}{addfield} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, \hyperlink{structluaL__Buffer}{luaL\_\-Buffer} $\ast$b, int i)
\item 
static int \hyperlink{ltablib_8c_dd6973c515a288f41265aca8e0ae6412}{tconcat} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})
\item 
static void \hyperlink{ltablib_8c_1172f96899917b7ea1702947b745eca6}{set2} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, int i, int j)
\item 
static int \hyperlink{ltablib_8c_e92f4625e74d1876b2ca2a4ced74c807}{sort\_\-comp} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, int a, int b)
\item 
static void \hyperlink{ltablib_8c_40096c011a188a26849b68cd9d5d920e}{auxsort} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, int l, int u)
\item 
static int \hyperlink{ltablib_8c_e7d3f892e2605bf102dce63de388e626}{sort} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})
\item 
LUALIB\_\-API int \hyperlink{ltablib_8c_8742c2ec334ae38cc7b94e731176cd99}{luaopen\_\-table} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})
\end{CompactItemize}
\subsection*{Variables}
\begin{CompactItemize}
\item 
static const \hyperlink{structluaL__Reg}{luaL\_\-Reg} \hyperlink{ltablib_8c_e420818215325a443b1066512a76ef5d}{tab\_\-funcs} \mbox{[}$\,$\mbox{]}
\end{CompactItemize}


\subsection{Define Documentation}
\hypertarget{ltablib_8c_e1ce7442009a6ca3293041d7eca98a74}{
\index{ltablib.c@{ltablib.c}!aux\_\-getn@{aux\_\-getn}}
\index{aux\_\-getn@{aux\_\-getn}!ltablib.c@{ltablib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define aux\_\-getn({\bf L}, \/  n)~(luaL\_\-checktype({\bf L}, n, LUA\_\-TTABLE), luaL\_\-getn({\bf L}, n))}}
\label{ltablib_8c_e1ce7442009a6ca3293041d7eca98a74}


\hypertarget{ltablib_8c_140da27fde6d0c6ba8c94f2464c570cb}{
\index{ltablib.c@{ltablib.c}!ltablib\_\-c@{ltablib\_\-c}}
\index{ltablib\_\-c@{ltablib\_\-c}!ltablib.c@{ltablib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define ltablib\_\-c}}
\label{ltablib_8c_140da27fde6d0c6ba8c94f2464c570cb}


\hypertarget{ltablib_8c_884b19ad6094d6238c4072a8064aeb12}{
\index{ltablib.c@{ltablib.c}!LUA\_\-LIB@{LUA\_\-LIB}}
\index{LUA\_\-LIB@{LUA\_\-LIB}!ltablib.c@{ltablib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define LUA\_\-LIB}}
\label{ltablib_8c_884b19ad6094d6238c4072a8064aeb12}




\subsection{Function Documentation}
\hypertarget{ltablib_8c_4ea6cc51c099ea709c7755a49216f4d0}{
\index{ltablib.c@{ltablib.c}!addfield@{addfield}}
\index{addfield@{addfield}!ltablib.c@{ltablib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static void addfield ({\bf lua\_\-State} $\ast$ {\em L}, \/  {\bf luaL\_\-Buffer} $\ast$ {\em b}, \/  int {\em i})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{ltablib_8c_4ea6cc51c099ea709c7755a49216f4d0}


\hypertarget{ltablib_8c_40096c011a188a26849b68cd9d5d920e}{
\index{ltablib.c@{ltablib.c}!auxsort@{auxsort}}
\index{auxsort@{auxsort}!ltablib.c@{ltablib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static void auxsort ({\bf lua\_\-State} $\ast$ {\em L}, \/  int {\em l}, \/  int {\em u})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{ltablib_8c_40096c011a188a26849b68cd9d5d920e}


\hypertarget{ltablib_8c_fde2e0781c200e4b78fabbe13e8b9e57}{
\index{ltablib.c@{ltablib.c}!foreach@{foreach}}
\index{foreach@{foreach}!ltablib.c@{ltablib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int foreach ({\bf lua\_\-State} $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{ltablib_8c_fde2e0781c200e4b78fabbe13e8b9e57}


\hypertarget{ltablib_8c_8b9f1cb816cce65b8fa88e8cd978fde3}{
\index{ltablib.c@{ltablib.c}!foreachi@{foreachi}}
\index{foreachi@{foreachi}!ltablib.c@{ltablib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int foreachi ({\bf lua\_\-State} $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{ltablib_8c_8b9f1cb816cce65b8fa88e8cd978fde3}


\hypertarget{ltablib_8c_0fb789287b24f4a8493ab35131c50ee2}{
\index{ltablib.c@{ltablib.c}!getn@{getn}}
\index{getn@{getn}!ltablib.c@{ltablib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int getn ({\bf lua\_\-State} $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{ltablib_8c_0fb789287b24f4a8493ab35131c50ee2}


\hypertarget{ltablib_8c_8742c2ec334ae38cc7b94e731176cd99}{
\index{ltablib.c@{ltablib.c}!luaopen\_\-table@{luaopen\_\-table}}
\index{luaopen\_\-table@{luaopen\_\-table}!ltablib.c@{ltablib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUALIB\_\-API int luaopen\_\-table ({\bf lua\_\-State} $\ast$ {\em L})}}
\label{ltablib_8c_8742c2ec334ae38cc7b94e731176cd99}


\hypertarget{ltablib_8c_ae6fc93d5965729560abe284447c57ac}{
\index{ltablib.c@{ltablib.c}!maxn@{maxn}}
\index{maxn@{maxn}!ltablib.c@{ltablib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int maxn ({\bf lua\_\-State} $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{ltablib_8c_ae6fc93d5965729560abe284447c57ac}


\hypertarget{ltablib_8c_1172f96899917b7ea1702947b745eca6}{
\index{ltablib.c@{ltablib.c}!set2@{set2}}
\index{set2@{set2}!ltablib.c@{ltablib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static void set2 ({\bf lua\_\-State} $\ast$ {\em L}, \/  int {\em i}, \/  int {\em j})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{ltablib_8c_1172f96899917b7ea1702947b745eca6}


\hypertarget{ltablib_8c_bc2410ba356a21a7d956e95eecb77d70}{
\index{ltablib.c@{ltablib.c}!setn@{setn}}
\index{setn@{setn}!ltablib.c@{ltablib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int setn ({\bf lua\_\-State} $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{ltablib_8c_bc2410ba356a21a7d956e95eecb77d70}


\hypertarget{ltablib_8c_e7d3f892e2605bf102dce63de388e626}{
\index{ltablib.c@{ltablib.c}!sort@{sort}}
\index{sort@{sort}!ltablib.c@{ltablib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int sort ({\bf lua\_\-State} $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{ltablib_8c_e7d3f892e2605bf102dce63de388e626}


\hypertarget{ltablib_8c_e92f4625e74d1876b2ca2a4ced74c807}{
\index{ltablib.c@{ltablib.c}!sort\_\-comp@{sort\_\-comp}}
\index{sort\_\-comp@{sort\_\-comp}!ltablib.c@{ltablib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int sort\_\-comp ({\bf lua\_\-State} $\ast$ {\em L}, \/  int {\em a}, \/  int {\em b})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{ltablib_8c_e92f4625e74d1876b2ca2a4ced74c807}


\hypertarget{ltablib_8c_dd6973c515a288f41265aca8e0ae6412}{
\index{ltablib.c@{ltablib.c}!tconcat@{tconcat}}
\index{tconcat@{tconcat}!ltablib.c@{ltablib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int tconcat ({\bf lua\_\-State} $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{ltablib_8c_dd6973c515a288f41265aca8e0ae6412}


\hypertarget{ltablib_8c_214ed6966e2b1b4c376ab0de0d09032e}{
\index{ltablib.c@{ltablib.c}!tinsert@{tinsert}}
\index{tinsert@{tinsert}!ltablib.c@{ltablib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int tinsert ({\bf lua\_\-State} $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{ltablib_8c_214ed6966e2b1b4c376ab0de0d09032e}


\hypertarget{ltablib_8c_d8c41fe887a472709c6fdf075ba39d56}{
\index{ltablib.c@{ltablib.c}!tremove@{tremove}}
\index{tremove@{tremove}!ltablib.c@{ltablib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int tremove ({\bf lua\_\-State} $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{ltablib_8c_d8c41fe887a472709c6fdf075ba39d56}




\subsection{Variable Documentation}
\hypertarget{ltablib_8c_e420818215325a443b1066512a76ef5d}{
\index{ltablib.c@{ltablib.c}!tab\_\-funcs@{tab\_\-funcs}}
\index{tab\_\-funcs@{tab\_\-funcs}!ltablib.c@{ltablib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf luaL\_\-Reg} {\bf tab\_\-funcs}\mbox{[}$\,$\mbox{]}\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{ltablib_8c_e420818215325a443b1066512a76ef5d}


\textbf{Initial value:}

\begin{Code}\begin{verbatim} {
  {"concat", tconcat},
  {"foreach", foreach},
  {"foreachi", foreachi},
  {"getn", getn},
  {"maxn", maxn},
  {"insert", tinsert},
  {"remove", tremove},
  {"setn", setn},
  {"sort", sort},
  {NULL, NULL}
}
\end{verbatim}
\end{Code}
