\hypertarget{lauxlib_8h}{
\section{lauxlib.h File Reference}
\label{lauxlib_8h}\index{lauxlib.h@{lauxlib.h}}
}
{\tt \#include $<$stddef.h$>$}\par
{\tt \#include $<$stdio.h$>$}\par
{\tt \#include \char`\"{}lua.h\char`\"{}}\par
\subsection*{Classes}
\begin{CompactItemize}
\item 
struct \hyperlink{structluaL__Reg}{luaL\_\-Reg}
\item 
struct \hyperlink{structluaL__Buffer}{luaL\_\-Buffer}
\end{CompactItemize}
\subsection*{Defines}
\begin{CompactItemize}
\item 
\#define \hyperlink{lauxlib_8h_0ef5c05520dabbaa65ecbade53e719fa}{luaL\_\-getn}(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, i)~((int)lua\_\-objlen(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, i))
\item 
\#define \hyperlink{lauxlib_8h_6528439647f8e5928dd9151be7c89302}{luaL\_\-setn}(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, i, j)~((void)0)
\item 
\#define \hyperlink{lauxlib_8h_ba5d150de784924e9111ccf650bea087}{luaI\_\-openlib}~luaL\_\-openlib
\item 
\#define \hyperlink{lauxlib_8h_b8d4418d33cd59728435db95ac2caf5a}{LUA\_\-ERRFILE}~(LUA\_\-ERRERR+1)
\item 
\#define \hyperlink{lauxlib_8h_fe2e3018d561c14f2622fb32f425c111}{luaL\_\-argcheck}(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, cond, numarg, extramsg)~((void)((cond) $|$$|$ luaL\_\-argerror(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, (numarg), (extramsg))))
\item 
\#define \hyperlink{lauxlib_8h_d9917d22c79651fdd73d42c146b5056f}{luaL\_\-checkstring}(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, n)~(luaL\_\-checklstring(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, (n), NULL))
\item 
\#define \hyperlink{lauxlib_8h_732bc5882c4a5da46b236649ab6db47b}{luaL\_\-optstring}(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, n, d)~(luaL\_\-optlstring(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, (n), (d), NULL))
\item 
\#define \hyperlink{lauxlib_8h_db277a5f654228b51b66f95bcf883601}{luaL\_\-checkint}(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, n)~((int)luaL\_\-checkinteger(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, (n)))
\item 
\#define \hyperlink{lauxlib_8h_b4d7f693e9405558c725783a756e0aca}{luaL\_\-optint}(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, n, d)~((int)luaL\_\-optinteger(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, (n), (d)))
\item 
\#define \hyperlink{lauxlib_8h_0df2697cbe2d4a33e012ab336af44b9b}{luaL\_\-checklong}(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, n)~((long)luaL\_\-checkinteger(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, (n)))
\item 
\#define \hyperlink{lauxlib_8h_58ea6d94dccfa493103d8e112dd276b6}{luaL\_\-optlong}(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, n, d)~((long)luaL\_\-optinteger(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, (n), (d)))
\item 
\#define \hyperlink{lauxlib_8h_2bee94954917c5bccb05d6578f3c675b}{luaL\_\-typename}(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, i)~lua\_\-typename(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, lua\_\-type(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L},(i)))
\item 
\#define \hyperlink{lauxlib_8h_a49a7a47a683d6e7868ede50ceb826be}{luaL\_\-dofile}(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, fn)~(luaL\_\-loadfile(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, fn) $|$$|$ lua\_\-pcall(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, 0, LUA\_\-MULTRET, 0))
\item 
\#define \hyperlink{lauxlib_8h_1a0639bfde6b1e2f6181af45b0137cf5}{luaL\_\-dostring}(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, s)~(luaL\_\-loadstring(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, s) $|$$|$ lua\_\-pcall(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, 0, LUA\_\-MULTRET, 0))
\item 
\#define \hyperlink{lauxlib_8h_201407aa41ff74577c67308372a130d9}{luaL\_\-getmetatable}(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, n)~(lua\_\-getfield(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, LUA\_\-REGISTRYINDEX, (n)))
\item 
\#define \hyperlink{lauxlib_8h_ca033280b0176012ef290131876f706e}{luaL\_\-opt}(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, f, n, d)~(lua\_\-isnoneornil(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L},(n)) ? (d) : f(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L},(n)))
\item 
\#define \hyperlink{lauxlib_8h_63935c5b4cf5d45930c875f6cc5e1432}{luaL\_\-addchar}(B, c)
\item 
\#define \hyperlink{lauxlib_8h_bbe5398fb8c79198354ba483e334cfdf}{luaL\_\-putchar}(B, c)~luaL\_\-addchar(B,c)
\item 
\#define \hyperlink{lauxlib_8h_2c5063f5c005f0ecd3fd69a9f7509073}{luaL\_\-addsize}(B, n)~((B) $\rightarrow$ p += (n))
\item 
\#define \hyperlink{lauxlib_8h_3bfb758f2ac7c9ecb758e1aeaaa82d3d}{LUA\_\-NOREF}~(-2)
\item 
\#define \hyperlink{lauxlib_8h_004a6b76c047f3b94890a08dbdcbbee7}{LUA\_\-REFNIL}~(-1)
\item 
\#define \hyperlink{lauxlib_8h_d33a233129d81d873e9b5a65fc7d0c3a}{lua\_\-ref}(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, lock)
\item 
\#define \hyperlink{lauxlib_8h_c9b78e96e9af92b1f43fa2fa016b263c}{lua\_\-unref}(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, ref)~luaL\_\-unref(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, LUA\_\-REGISTRYINDEX, (ref))
\item 
\#define \hyperlink{lauxlib_8h_7bce9002427e63aa572e53f77432a7ee}{lua\_\-getref}(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, ref)~lua\_\-rawgeti(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, LUA\_\-REGISTRYINDEX, (ref))
\item 
\#define \hyperlink{lauxlib_8h_2015fce24247ce967682fd7458684af2}{luaL\_\-reg}~\hyperlink{structluaL__Reg}{luaL\_\-Reg}
\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
LUALIB\_\-API void() \hyperlink{lauxlib_8h_e352d571a7b93c6b311b7aa993f9aaba}{luaI\_\-openlib} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, const char $\ast$libname, const \hyperlink{structluaL__Reg}{luaL\_\-Reg} $\ast$l, int nup)
\item 
LUALIB\_\-API void() \hyperlink{lauxlib_8h_258c0fd40d57aec9cf62ebd74be7666e}{luaL\_\-register} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, const char $\ast$libname, const \hyperlink{structluaL__Reg}{luaL\_\-Reg} $\ast$l)
\item 
LUALIB\_\-API int() \hyperlink{lauxlib_8h_ed3f129411ba1ec14f813d650f16384d}{luaL\_\-getmetafield} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, int obj, const char $\ast$e)
\item 
LUALIB\_\-API int() \hyperlink{lauxlib_8h_f26aec8cce4a3f4448c60f402d78f17d}{luaL\_\-callmeta} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, int obj, const char $\ast$e)
\item 
LUALIB\_\-API int() \hyperlink{lauxlib_8h_022056a7197e2e2c12f2b65b2993fd53}{luaL\_\-typerror} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, int narg, const char $\ast$tname)
\item 
LUALIB\_\-API int() \hyperlink{lauxlib_8h_526c220d17273c63ce9973bcde4a2c4a}{luaL\_\-argerror} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, int numarg, const char $\ast$extramsg)
\item 
LUALIB\_\-API char $\ast$() \hyperlink{lauxlib_8h_f8b2a31e6ac06e8e43238fa89fefee72}{luaL\_\-checklstring} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, int numArg, size\_\-t $\ast$l)
\item 
LUALIB\_\-API const char $\ast$() \hyperlink{lauxlib_8h_15b8c426b2e1b0cd1f9ddc32bc94df2f}{luaL\_\-optlstring} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, int numArg, const char $\ast$def, size\_\-t $\ast$l)
\item 
LUALIB\_\-API \hyperlink{lua_8h_f0a6ed3b852d680769cfc410a0672172}{lua\_\-Number}() \hyperlink{lauxlib_8h_3e39a4d35c3ce1555126e372a8a329c3}{luaL\_\-checknumber} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, int numArg)
\item 
LUALIB\_\-API \hyperlink{lua_8h_f0a6ed3b852d680769cfc410a0672172}{lua\_\-Number}() \hyperlink{lauxlib_8h_001e2679c64c24eefbaf478fd0c22f97}{luaL\_\-optnumber} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, int nArg, \hyperlink{lua_8h_f0a6ed3b852d680769cfc410a0672172}{lua\_\-Number} def)
\item 
LUALIB\_\-API \hyperlink{lua_8h_362144baa0cfb14dc38fd21438053d73}{lua\_\-Integer}() \hyperlink{lauxlib_8h_b9c2bb4294fb7a81d3745dad5711cd63}{luaL\_\-checkinteger} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, int numArg)
\item 
LUALIB\_\-API \hyperlink{lua_8h_362144baa0cfb14dc38fd21438053d73}{lua\_\-Integer}() \hyperlink{lauxlib_8h_2b17cdda9e7ed73a1cd152cd386dc7a4}{luaL\_\-optinteger} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, int nArg, \hyperlink{lua_8h_362144baa0cfb14dc38fd21438053d73}{lua\_\-Integer} def)
\item 
LUALIB\_\-API void() \hyperlink{lauxlib_8h_724f5a5aeee97c0b40948c8bca91341c}{luaL\_\-checkstack} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, int sz, const char $\ast$msg)
\item 
LUALIB\_\-API void() \hyperlink{lauxlib_8h_e5f465fb757069d016a10b106c69bdd7}{luaL\_\-checktype} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, int narg, int t)
\item 
LUALIB\_\-API void() \hyperlink{lauxlib_8h_d78c85dce421e9cb793e205b9e81c640}{luaL\_\-checkany} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, int narg)
\item 
LUALIB\_\-API int() \hyperlink{lauxlib_8h_0e9e032108e7aedc05836b0c1d72a0fa}{luaL\_\-newmetatable} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, const char $\ast$tname)
\item 
LUALIB\_\-API void $\ast$() \hyperlink{lauxlib_8h_ed8d8e4f3b95c6bcac246ec9895027b1}{luaL\_\-checkudata} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, int ud, const char $\ast$tname)
\item 
LUALIB\_\-API void() \hyperlink{lauxlib_8h_269122a77674ca63c9193c2a30b4729e}{luaL\_\-where} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, int lvl)
\item 
LUALIB\_\-API int() \hyperlink{lauxlib_8h_994f73d7985c30672469a260d9e86ae6}{luaL\_\-error} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, const char $\ast$fmt,...)
\item 
LUALIB\_\-API int() \hyperlink{lauxlib_8h_638633914d3a19650db8320c1fccf161}{luaL\_\-checkoption} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, int narg, const char $\ast$def, const char $\ast$const lst\mbox{[}$\,$\mbox{]})
\item 
LUALIB\_\-API int() \hyperlink{lauxlib_8h_2b69e67252d95df410818251f4b2d8e5}{luaL\_\-ref} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, int t)
\item 
LUALIB\_\-API void() \hyperlink{lauxlib_8h_6200030ecae784852045161274501e0e}{luaL\_\-unref} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, int t, int ref)
\item 
LUALIB\_\-API int() \hyperlink{lauxlib_8h_fa862c5bdbbcfc8f46e0cac9f32a771e}{luaL\_\-loadfile} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, const char $\ast$filename)
\item 
LUALIB\_\-API int() \hyperlink{lauxlib_8h_74d560ea0256e7b48496a4acb1d7522e}{luaL\_\-loadbuffer} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, const char $\ast$buff, size\_\-t sz, const char $\ast$name)
\item 
LUALIB\_\-API int() \hyperlink{lauxlib_8h_c88130d6214ff6b3e2f1781f327807eb}{luaL\_\-loadstring} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, const char $\ast$s)
\item 
LUALIB\_\-API \hyperlink{structlua__State}{lua\_\-State} $\ast$() \hyperlink{lauxlib_8h_7d8712fcede90ae93d5a9a7b409c586e}{luaL\_\-newstate} (void)
\item 
LUALIB\_\-API const char $\ast$() \hyperlink{lauxlib_8h_46672be75da57e1a464c5c6d80f19064}{luaL\_\-gsub} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, const char $\ast$s, const char $\ast$p, const char $\ast$r)
\item 
LUALIB\_\-API const char $\ast$() \hyperlink{lauxlib_8h_561116e7d323baa7ae514054bc15978f}{luaL\_\-findtable} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, int idx, const char $\ast$fname, int szhint)
\item 
LUALIB\_\-API void() \hyperlink{lauxlib_8h_ab6af54c782855fee2bef84eb41bdc00}{luaL\_\-buffinit} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, \hyperlink{structluaL__Buffer}{luaL\_\-Buffer} $\ast$B)
\item 
LUALIB\_\-API char $\ast$() \hyperlink{lauxlib_8h_db0d0b797f1b8cc8ec4cda17a2939f87}{luaL\_\-prepbuffer} (\hyperlink{structluaL__Buffer}{luaL\_\-Buffer} $\ast$B)
\item 
LUALIB\_\-API void() \hyperlink{lauxlib_8h_06fceedb3abb1272566ca22c96e34b95}{luaL\_\-addlstring} (\hyperlink{structluaL__Buffer}{luaL\_\-Buffer} $\ast$B, const char $\ast$s, size\_\-t l)
\item 
LUALIB\_\-API void() \hyperlink{lauxlib_8h_d9c038f6e108e216011aca1801f84f44}{luaL\_\-addstring} (\hyperlink{structluaL__Buffer}{luaL\_\-Buffer} $\ast$B, const char $\ast$s)
\item 
LUALIB\_\-API void() \hyperlink{lauxlib_8h_eeb03d69681da0ec0e952b582ce3841c}{luaL\_\-addvalue} (\hyperlink{structluaL__Buffer}{luaL\_\-Buffer} $\ast$B)
\item 
LUALIB\_\-API void() \hyperlink{lauxlib_8h_ac5dfab9ba0ced4f5ae3b22aa35faffe}{luaL\_\-pushresult} (\hyperlink{structluaL__Buffer}{luaL\_\-Buffer} $\ast$B)
\end{CompactItemize}


\subsection{Define Documentation}
\hypertarget{lauxlib_8h_b8d4418d33cd59728435db95ac2caf5a}{
\index{lauxlib.h@{lauxlib.h}!LUA\_\-ERRFILE@{LUA\_\-ERRFILE}}
\index{LUA\_\-ERRFILE@{LUA\_\-ERRFILE}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define LUA\_\-ERRFILE~(LUA\_\-ERRERR+1)}}
\label{lauxlib_8h_b8d4418d33cd59728435db95ac2caf5a}


\hypertarget{lauxlib_8h_7bce9002427e63aa572e53f77432a7ee}{
\index{lauxlib.h@{lauxlib.h}!lua\_\-getref@{lua\_\-getref}}
\index{lua\_\-getref@{lua\_\-getref}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define lua\_\-getref({\bf L}, \/  ref)~lua\_\-rawgeti({\bf L}, LUA\_\-REGISTRYINDEX, (ref))}}
\label{lauxlib_8h_7bce9002427e63aa572e53f77432a7ee}


\hypertarget{lauxlib_8h_3bfb758f2ac7c9ecb758e1aeaaa82d3d}{
\index{lauxlib.h@{lauxlib.h}!LUA\_\-NOREF@{LUA\_\-NOREF}}
\index{LUA\_\-NOREF@{LUA\_\-NOREF}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define LUA\_\-NOREF~(-2)}}
\label{lauxlib_8h_3bfb758f2ac7c9ecb758e1aeaaa82d3d}


\hypertarget{lauxlib_8h_d33a233129d81d873e9b5a65fc7d0c3a}{
\index{lauxlib.h@{lauxlib.h}!lua\_\-ref@{lua\_\-ref}}
\index{lua\_\-ref@{lua\_\-ref}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define lua\_\-ref({\bf L}, \/  lock)}}
\label{lauxlib_8h_d33a233129d81d873e9b5a65fc7d0c3a}


\textbf{Value:}

\begin{Code}\begin{verbatim}((lock) ? luaL_ref(L, LUA_REGISTRYINDEX) : \
      (lua_pushstring(L, "unlocked references are obsolete"), lua_error(L), 0))
\end{verbatim}
\end{Code}
\hypertarget{lauxlib_8h_004a6b76c047f3b94890a08dbdcbbee7}{
\index{lauxlib.h@{lauxlib.h}!LUA\_\-REFNIL@{LUA\_\-REFNIL}}
\index{LUA\_\-REFNIL@{LUA\_\-REFNIL}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define LUA\_\-REFNIL~(-1)}}
\label{lauxlib_8h_004a6b76c047f3b94890a08dbdcbbee7}


\hypertarget{lauxlib_8h_c9b78e96e9af92b1f43fa2fa016b263c}{
\index{lauxlib.h@{lauxlib.h}!lua\_\-unref@{lua\_\-unref}}
\index{lua\_\-unref@{lua\_\-unref}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define lua\_\-unref({\bf L}, \/  ref)~luaL\_\-unref({\bf L}, LUA\_\-REGISTRYINDEX, (ref))}}
\label{lauxlib_8h_c9b78e96e9af92b1f43fa2fa016b263c}


\hypertarget{lauxlib_8h_ba5d150de784924e9111ccf650bea087}{
\index{lauxlib.h@{lauxlib.h}!luaI\_\-openlib@{luaI\_\-openlib}}
\index{luaI\_\-openlib@{luaI\_\-openlib}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define luaI\_\-openlib~luaL\_\-openlib}}
\label{lauxlib_8h_ba5d150de784924e9111ccf650bea087}


\hypertarget{lauxlib_8h_63935c5b4cf5d45930c875f6cc5e1432}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-addchar@{luaL\_\-addchar}}
\index{luaL\_\-addchar@{luaL\_\-addchar}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define luaL\_\-addchar(B, \/  c)}}
\label{lauxlib_8h_63935c5b4cf5d45930c875f6cc5e1432}


\textbf{Value:}

\begin{Code}\begin{verbatim}((void)((B)->p < ((B)->buffer+LUAL_BUFFERSIZE) || luaL_prepbuffer(B)), \
   (*(B)->p++ = (char)(c)))
\end{verbatim}
\end{Code}
\hypertarget{lauxlib_8h_2c5063f5c005f0ecd3fd69a9f7509073}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-addsize@{luaL\_\-addsize}}
\index{luaL\_\-addsize@{luaL\_\-addsize}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define luaL\_\-addsize(B, \/  n)~((B) $\rightarrow$ p += (n))}}
\label{lauxlib_8h_2c5063f5c005f0ecd3fd69a9f7509073}


\hypertarget{lauxlib_8h_fe2e3018d561c14f2622fb32f425c111}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-argcheck@{luaL\_\-argcheck}}
\index{luaL\_\-argcheck@{luaL\_\-argcheck}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define luaL\_\-argcheck({\bf L}, \/  cond, \/  numarg, \/  extramsg)~((void)((cond) $|$$|$ luaL\_\-argerror({\bf L}, (numarg), (extramsg))))}}
\label{lauxlib_8h_fe2e3018d561c14f2622fb32f425c111}


\hypertarget{lauxlib_8h_db277a5f654228b51b66f95bcf883601}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-checkint@{luaL\_\-checkint}}
\index{luaL\_\-checkint@{luaL\_\-checkint}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define luaL\_\-checkint({\bf L}, \/  n)~((int)luaL\_\-checkinteger({\bf L}, (n)))}}
\label{lauxlib_8h_db277a5f654228b51b66f95bcf883601}


\hypertarget{lauxlib_8h_0df2697cbe2d4a33e012ab336af44b9b}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-checklong@{luaL\_\-checklong}}
\index{luaL\_\-checklong@{luaL\_\-checklong}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define luaL\_\-checklong({\bf L}, \/  n)~((long)luaL\_\-checkinteger({\bf L}, (n)))}}
\label{lauxlib_8h_0df2697cbe2d4a33e012ab336af44b9b}


\hypertarget{lauxlib_8h_d9917d22c79651fdd73d42c146b5056f}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-checkstring@{luaL\_\-checkstring}}
\index{luaL\_\-checkstring@{luaL\_\-checkstring}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define luaL\_\-checkstring({\bf L}, \/  n)~(luaL\_\-checklstring({\bf L}, (n), NULL))}}
\label{lauxlib_8h_d9917d22c79651fdd73d42c146b5056f}


\hypertarget{lauxlib_8h_a49a7a47a683d6e7868ede50ceb826be}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-dofile@{luaL\_\-dofile}}
\index{luaL\_\-dofile@{luaL\_\-dofile}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define luaL\_\-dofile({\bf L}, \/  fn)~(luaL\_\-loadfile({\bf L}, fn) $|$$|$ lua\_\-pcall({\bf L}, 0, LUA\_\-MULTRET, 0))}}
\label{lauxlib_8h_a49a7a47a683d6e7868ede50ceb826be}


\hypertarget{lauxlib_8h_1a0639bfde6b1e2f6181af45b0137cf5}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-dostring@{luaL\_\-dostring}}
\index{luaL\_\-dostring@{luaL\_\-dostring}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define luaL\_\-dostring({\bf L}, \/  s)~(luaL\_\-loadstring({\bf L}, s) $|$$|$ lua\_\-pcall({\bf L}, 0, LUA\_\-MULTRET, 0))}}
\label{lauxlib_8h_1a0639bfde6b1e2f6181af45b0137cf5}


\hypertarget{lauxlib_8h_201407aa41ff74577c67308372a130d9}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-getmetatable@{luaL\_\-getmetatable}}
\index{luaL\_\-getmetatable@{luaL\_\-getmetatable}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define luaL\_\-getmetatable({\bf L}, \/  n)~(lua\_\-getfield({\bf L}, LUA\_\-REGISTRYINDEX, (n)))}}
\label{lauxlib_8h_201407aa41ff74577c67308372a130d9}


\hypertarget{lauxlib_8h_0ef5c05520dabbaa65ecbade53e719fa}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-getn@{luaL\_\-getn}}
\index{luaL\_\-getn@{luaL\_\-getn}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define luaL\_\-getn({\bf L}, \/  i)~((int)lua\_\-objlen({\bf L}, i))}}
\label{lauxlib_8h_0ef5c05520dabbaa65ecbade53e719fa}


\hypertarget{lauxlib_8h_ca033280b0176012ef290131876f706e}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-opt@{luaL\_\-opt}}
\index{luaL\_\-opt@{luaL\_\-opt}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define luaL\_\-opt({\bf L}, \/  f, \/  n, \/  d)~(lua\_\-isnoneornil({\bf L},(n)) ? (d) : f({\bf L},(n)))}}
\label{lauxlib_8h_ca033280b0176012ef290131876f706e}


\hypertarget{lauxlib_8h_b4d7f693e9405558c725783a756e0aca}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-optint@{luaL\_\-optint}}
\index{luaL\_\-optint@{luaL\_\-optint}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define luaL\_\-optint({\bf L}, \/  n, \/  d)~((int)luaL\_\-optinteger({\bf L}, (n), (d)))}}
\label{lauxlib_8h_b4d7f693e9405558c725783a756e0aca}


\hypertarget{lauxlib_8h_58ea6d94dccfa493103d8e112dd276b6}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-optlong@{luaL\_\-optlong}}
\index{luaL\_\-optlong@{luaL\_\-optlong}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define luaL\_\-optlong({\bf L}, \/  n, \/  d)~((long)luaL\_\-optinteger({\bf L}, (n), (d)))}}
\label{lauxlib_8h_58ea6d94dccfa493103d8e112dd276b6}


\hypertarget{lauxlib_8h_732bc5882c4a5da46b236649ab6db47b}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-optstring@{luaL\_\-optstring}}
\index{luaL\_\-optstring@{luaL\_\-optstring}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define luaL\_\-optstring({\bf L}, \/  n, \/  d)~(luaL\_\-optlstring({\bf L}, (n), (d), NULL))}}
\label{lauxlib_8h_732bc5882c4a5da46b236649ab6db47b}


\hypertarget{lauxlib_8h_bbe5398fb8c79198354ba483e334cfdf}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-putchar@{luaL\_\-putchar}}
\index{luaL\_\-putchar@{luaL\_\-putchar}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define luaL\_\-putchar(B, \/  c)~luaL\_\-addchar(B,c)}}
\label{lauxlib_8h_bbe5398fb8c79198354ba483e334cfdf}


\hypertarget{lauxlib_8h_2015fce24247ce967682fd7458684af2}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-reg@{luaL\_\-reg}}
\index{luaL\_\-reg@{luaL\_\-reg}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define luaL\_\-reg~{\bf luaL\_\-Reg}}}
\label{lauxlib_8h_2015fce24247ce967682fd7458684af2}


\hypertarget{lauxlib_8h_6528439647f8e5928dd9151be7c89302}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-setn@{luaL\_\-setn}}
\index{luaL\_\-setn@{luaL\_\-setn}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define luaL\_\-setn({\bf L}, \/  i, \/  j)~((void)0)}}
\label{lauxlib_8h_6528439647f8e5928dd9151be7c89302}


\hypertarget{lauxlib_8h_2bee94954917c5bccb05d6578f3c675b}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-typename@{luaL\_\-typename}}
\index{luaL\_\-typename@{luaL\_\-typename}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define luaL\_\-typename({\bf L}, \/  i)~lua\_\-typename({\bf L}, lua\_\-type({\bf L},(i)))}}
\label{lauxlib_8h_2bee94954917c5bccb05d6578f3c675b}




\subsection{Function Documentation}
\hypertarget{lauxlib_8h_e352d571a7b93c6b311b7aa993f9aaba}{
\index{lauxlib.h@{lauxlib.h}!luaI\_\-openlib@{luaI\_\-openlib}}
\index{luaI\_\-openlib@{luaI\_\-openlib}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUALIB\_\-API void() luaI\_\-openlib ({\bf lua\_\-State} $\ast$ {\em L}, \/  const char $\ast$ {\em libname}, \/  const {\bf luaL\_\-Reg} $\ast$ {\em l}, \/  int {\em nup})}}
\label{lauxlib_8h_e352d571a7b93c6b311b7aa993f9aaba}


\hypertarget{lauxlib_8h_06fceedb3abb1272566ca22c96e34b95}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-addlstring@{luaL\_\-addlstring}}
\index{luaL\_\-addlstring@{luaL\_\-addlstring}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUALIB\_\-API void() luaL\_\-addlstring ({\bf luaL\_\-Buffer} $\ast$ {\em B}, \/  const char $\ast$ {\em s}, \/  size\_\-t {\em l})}}
\label{lauxlib_8h_06fceedb3abb1272566ca22c96e34b95}


\hypertarget{lauxlib_8h_d9c038f6e108e216011aca1801f84f44}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-addstring@{luaL\_\-addstring}}
\index{luaL\_\-addstring@{luaL\_\-addstring}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUALIB\_\-API void() luaL\_\-addstring ({\bf luaL\_\-Buffer} $\ast$ {\em B}, \/  const char $\ast$ {\em s})}}
\label{lauxlib_8h_d9c038f6e108e216011aca1801f84f44}


\hypertarget{lauxlib_8h_eeb03d69681da0ec0e952b582ce3841c}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-addvalue@{luaL\_\-addvalue}}
\index{luaL\_\-addvalue@{luaL\_\-addvalue}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUALIB\_\-API void() luaL\_\-addvalue ({\bf luaL\_\-Buffer} $\ast$ {\em B})}}
\label{lauxlib_8h_eeb03d69681da0ec0e952b582ce3841c}


\hypertarget{lauxlib_8h_526c220d17273c63ce9973bcde4a2c4a}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-argerror@{luaL\_\-argerror}}
\index{luaL\_\-argerror@{luaL\_\-argerror}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUALIB\_\-API int() luaL\_\-argerror ({\bf lua\_\-State} $\ast$ {\em L}, \/  int {\em numarg}, \/  const char $\ast$ {\em extramsg})}}
\label{lauxlib_8h_526c220d17273c63ce9973bcde4a2c4a}


\hypertarget{lauxlib_8h_ab6af54c782855fee2bef84eb41bdc00}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-buffinit@{luaL\_\-buffinit}}
\index{luaL\_\-buffinit@{luaL\_\-buffinit}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUALIB\_\-API void() luaL\_\-buffinit ({\bf lua\_\-State} $\ast$ {\em L}, \/  {\bf luaL\_\-Buffer} $\ast$ {\em B})}}
\label{lauxlib_8h_ab6af54c782855fee2bef84eb41bdc00}


\hypertarget{lauxlib_8h_f26aec8cce4a3f4448c60f402d78f17d}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-callmeta@{luaL\_\-callmeta}}
\index{luaL\_\-callmeta@{luaL\_\-callmeta}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUALIB\_\-API int() luaL\_\-callmeta ({\bf lua\_\-State} $\ast$ {\em L}, \/  int {\em obj}, \/  const char $\ast$ {\em e})}}
\label{lauxlib_8h_f26aec8cce4a3f4448c60f402d78f17d}


\hypertarget{lauxlib_8h_d78c85dce421e9cb793e205b9e81c640}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-checkany@{luaL\_\-checkany}}
\index{luaL\_\-checkany@{luaL\_\-checkany}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUALIB\_\-API void() luaL\_\-checkany ({\bf lua\_\-State} $\ast$ {\em L}, \/  int {\em narg})}}
\label{lauxlib_8h_d78c85dce421e9cb793e205b9e81c640}


\hypertarget{lauxlib_8h_b9c2bb4294fb7a81d3745dad5711cd63}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-checkinteger@{luaL\_\-checkinteger}}
\index{luaL\_\-checkinteger@{luaL\_\-checkinteger}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUALIB\_\-API {\bf lua\_\-Integer}() luaL\_\-checkinteger ({\bf lua\_\-State} $\ast$ {\em L}, \/  int {\em numArg})}}
\label{lauxlib_8h_b9c2bb4294fb7a81d3745dad5711cd63}


\hypertarget{lauxlib_8h_f8b2a31e6ac06e8e43238fa89fefee72}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-checklstring@{luaL\_\-checklstring}}
\index{luaL\_\-checklstring@{luaL\_\-checklstring}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUALIB\_\-API char$\ast$() luaL\_\-checklstring ({\bf lua\_\-State} $\ast$ {\em L}, \/  int {\em numArg}, \/  size\_\-t $\ast$ {\em l})}}
\label{lauxlib_8h_f8b2a31e6ac06e8e43238fa89fefee72}


\hypertarget{lauxlib_8h_3e39a4d35c3ce1555126e372a8a329c3}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-checknumber@{luaL\_\-checknumber}}
\index{luaL\_\-checknumber@{luaL\_\-checknumber}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUALIB\_\-API {\bf lua\_\-Number}() luaL\_\-checknumber ({\bf lua\_\-State} $\ast$ {\em L}, \/  int {\em numArg})}}
\label{lauxlib_8h_3e39a4d35c3ce1555126e372a8a329c3}


\hypertarget{lauxlib_8h_638633914d3a19650db8320c1fccf161}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-checkoption@{luaL\_\-checkoption}}
\index{luaL\_\-checkoption@{luaL\_\-checkoption}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUALIB\_\-API int() luaL\_\-checkoption ({\bf lua\_\-State} $\ast$ {\em L}, \/  int {\em narg}, \/  const char $\ast$ {\em def}, \/  const char $\ast$const  {\em lst}\mbox{[}$\,$\mbox{]})}}
\label{lauxlib_8h_638633914d3a19650db8320c1fccf161}


\hypertarget{lauxlib_8h_724f5a5aeee97c0b40948c8bca91341c}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-checkstack@{luaL\_\-checkstack}}
\index{luaL\_\-checkstack@{luaL\_\-checkstack}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUALIB\_\-API void() luaL\_\-checkstack ({\bf lua\_\-State} $\ast$ {\em L}, \/  int {\em sz}, \/  const char $\ast$ {\em msg})}}
\label{lauxlib_8h_724f5a5aeee97c0b40948c8bca91341c}


\hypertarget{lauxlib_8h_e5f465fb757069d016a10b106c69bdd7}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-checktype@{luaL\_\-checktype}}
\index{luaL\_\-checktype@{luaL\_\-checktype}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUALIB\_\-API void() luaL\_\-checktype ({\bf lua\_\-State} $\ast$ {\em L}, \/  int {\em narg}, \/  int {\em t})}}
\label{lauxlib_8h_e5f465fb757069d016a10b106c69bdd7}


\hypertarget{lauxlib_8h_ed8d8e4f3b95c6bcac246ec9895027b1}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-checkudata@{luaL\_\-checkudata}}
\index{luaL\_\-checkudata@{luaL\_\-checkudata}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUALIB\_\-API void$\ast$() luaL\_\-checkudata ({\bf lua\_\-State} $\ast$ {\em L}, \/  int {\em ud}, \/  const char $\ast$ {\em tname})}}
\label{lauxlib_8h_ed8d8e4f3b95c6bcac246ec9895027b1}


\hypertarget{lauxlib_8h_994f73d7985c30672469a260d9e86ae6}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-error@{luaL\_\-error}}
\index{luaL\_\-error@{luaL\_\-error}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUALIB\_\-API int() luaL\_\-error ({\bf lua\_\-State} $\ast$ {\em L}, \/  const char $\ast$ {\em fmt}, \/   {\em ...})}}
\label{lauxlib_8h_994f73d7985c30672469a260d9e86ae6}


\hypertarget{lauxlib_8h_561116e7d323baa7ae514054bc15978f}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-findtable@{luaL\_\-findtable}}
\index{luaL\_\-findtable@{luaL\_\-findtable}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUALIB\_\-API const char$\ast$() luaL\_\-findtable ({\bf lua\_\-State} $\ast$ {\em L}, \/  int {\em idx}, \/  const char $\ast$ {\em fname}, \/  int {\em szhint})}}
\label{lauxlib_8h_561116e7d323baa7ae514054bc15978f}


\hypertarget{lauxlib_8h_ed3f129411ba1ec14f813d650f16384d}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-getmetafield@{luaL\_\-getmetafield}}
\index{luaL\_\-getmetafield@{luaL\_\-getmetafield}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUALIB\_\-API int() luaL\_\-getmetafield ({\bf lua\_\-State} $\ast$ {\em L}, \/  int {\em obj}, \/  const char $\ast$ {\em e})}}
\label{lauxlib_8h_ed3f129411ba1ec14f813d650f16384d}


\hypertarget{lauxlib_8h_46672be75da57e1a464c5c6d80f19064}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-gsub@{luaL\_\-gsub}}
\index{luaL\_\-gsub@{luaL\_\-gsub}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUALIB\_\-API const char$\ast$() luaL\_\-gsub ({\bf lua\_\-State} $\ast$ {\em L}, \/  const char $\ast$ {\em s}, \/  const char $\ast$ {\em p}, \/  const char $\ast$ {\em r})}}
\label{lauxlib_8h_46672be75da57e1a464c5c6d80f19064}


\hypertarget{lauxlib_8h_74d560ea0256e7b48496a4acb1d7522e}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-loadbuffer@{luaL\_\-loadbuffer}}
\index{luaL\_\-loadbuffer@{luaL\_\-loadbuffer}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUALIB\_\-API int() luaL\_\-loadbuffer ({\bf lua\_\-State} $\ast$ {\em L}, \/  const char $\ast$ {\em buff}, \/  size\_\-t {\em sz}, \/  const char $\ast$ {\em name})}}
\label{lauxlib_8h_74d560ea0256e7b48496a4acb1d7522e}


\hypertarget{lauxlib_8h_fa862c5bdbbcfc8f46e0cac9f32a771e}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-loadfile@{luaL\_\-loadfile}}
\index{luaL\_\-loadfile@{luaL\_\-loadfile}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUALIB\_\-API int() luaL\_\-loadfile ({\bf lua\_\-State} $\ast$ {\em L}, \/  const char $\ast$ {\em filename})}}
\label{lauxlib_8h_fa862c5bdbbcfc8f46e0cac9f32a771e}


\hypertarget{lauxlib_8h_c88130d6214ff6b3e2f1781f327807eb}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-loadstring@{luaL\_\-loadstring}}
\index{luaL\_\-loadstring@{luaL\_\-loadstring}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUALIB\_\-API int() luaL\_\-loadstring ({\bf lua\_\-State} $\ast$ {\em L}, \/  const char $\ast$ {\em s})}}
\label{lauxlib_8h_c88130d6214ff6b3e2f1781f327807eb}


\hypertarget{lauxlib_8h_0e9e032108e7aedc05836b0c1d72a0fa}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-newmetatable@{luaL\_\-newmetatable}}
\index{luaL\_\-newmetatable@{luaL\_\-newmetatable}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUALIB\_\-API int() luaL\_\-newmetatable ({\bf lua\_\-State} $\ast$ {\em L}, \/  const char $\ast$ {\em tname})}}
\label{lauxlib_8h_0e9e032108e7aedc05836b0c1d72a0fa}


\hypertarget{lauxlib_8h_7d8712fcede90ae93d5a9a7b409c586e}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-newstate@{luaL\_\-newstate}}
\index{luaL\_\-newstate@{luaL\_\-newstate}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUALIB\_\-API {\bf lua\_\-State}$\ast$() luaL\_\-newstate (void)}}
\label{lauxlib_8h_7d8712fcede90ae93d5a9a7b409c586e}


\hypertarget{lauxlib_8h_2b17cdda9e7ed73a1cd152cd386dc7a4}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-optinteger@{luaL\_\-optinteger}}
\index{luaL\_\-optinteger@{luaL\_\-optinteger}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUALIB\_\-API {\bf lua\_\-Integer}() luaL\_\-optinteger ({\bf lua\_\-State} $\ast$ {\em L}, \/  int {\em nArg}, \/  {\bf lua\_\-Integer} {\em def})}}
\label{lauxlib_8h_2b17cdda9e7ed73a1cd152cd386dc7a4}


\hypertarget{lauxlib_8h_15b8c426b2e1b0cd1f9ddc32bc94df2f}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-optlstring@{luaL\_\-optlstring}}
\index{luaL\_\-optlstring@{luaL\_\-optlstring}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUALIB\_\-API const char$\ast$() luaL\_\-optlstring ({\bf lua\_\-State} $\ast$ {\em L}, \/  int {\em numArg}, \/  const char $\ast$ {\em def}, \/  size\_\-t $\ast$ {\em l})}}
\label{lauxlib_8h_15b8c426b2e1b0cd1f9ddc32bc94df2f}


\hypertarget{lauxlib_8h_001e2679c64c24eefbaf478fd0c22f97}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-optnumber@{luaL\_\-optnumber}}
\index{luaL\_\-optnumber@{luaL\_\-optnumber}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUALIB\_\-API {\bf lua\_\-Number}() luaL\_\-optnumber ({\bf lua\_\-State} $\ast$ {\em L}, \/  int {\em nArg}, \/  {\bf lua\_\-Number} {\em def})}}
\label{lauxlib_8h_001e2679c64c24eefbaf478fd0c22f97}


\hypertarget{lauxlib_8h_db0d0b797f1b8cc8ec4cda17a2939f87}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-prepbuffer@{luaL\_\-prepbuffer}}
\index{luaL\_\-prepbuffer@{luaL\_\-prepbuffer}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUALIB\_\-API char$\ast$() luaL\_\-prepbuffer ({\bf luaL\_\-Buffer} $\ast$ {\em B})}}
\label{lauxlib_8h_db0d0b797f1b8cc8ec4cda17a2939f87}


\hypertarget{lauxlib_8h_ac5dfab9ba0ced4f5ae3b22aa35faffe}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-pushresult@{luaL\_\-pushresult}}
\index{luaL\_\-pushresult@{luaL\_\-pushresult}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUALIB\_\-API void() luaL\_\-pushresult ({\bf luaL\_\-Buffer} $\ast$ {\em B})}}
\label{lauxlib_8h_ac5dfab9ba0ced4f5ae3b22aa35faffe}


\hypertarget{lauxlib_8h_2b69e67252d95df410818251f4b2d8e5}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-ref@{luaL\_\-ref}}
\index{luaL\_\-ref@{luaL\_\-ref}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUALIB\_\-API int() luaL\_\-ref ({\bf lua\_\-State} $\ast$ {\em L}, \/  int {\em t})}}
\label{lauxlib_8h_2b69e67252d95df410818251f4b2d8e5}


\hypertarget{lauxlib_8h_258c0fd40d57aec9cf62ebd74be7666e}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-register@{luaL\_\-register}}
\index{luaL\_\-register@{luaL\_\-register}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUALIB\_\-API void() luaL\_\-register ({\bf lua\_\-State} $\ast$ {\em L}, \/  const char $\ast$ {\em libname}, \/  const {\bf luaL\_\-Reg} $\ast$ {\em l})}}
\label{lauxlib_8h_258c0fd40d57aec9cf62ebd74be7666e}


\hypertarget{lauxlib_8h_022056a7197e2e2c12f2b65b2993fd53}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-typerror@{luaL\_\-typerror}}
\index{luaL\_\-typerror@{luaL\_\-typerror}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUALIB\_\-API int() luaL\_\-typerror ({\bf lua\_\-State} $\ast$ {\em L}, \/  int {\em narg}, \/  const char $\ast$ {\em tname})}}
\label{lauxlib_8h_022056a7197e2e2c12f2b65b2993fd53}


\hypertarget{lauxlib_8h_6200030ecae784852045161274501e0e}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-unref@{luaL\_\-unref}}
\index{luaL\_\-unref@{luaL\_\-unref}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUALIB\_\-API void() luaL\_\-unref ({\bf lua\_\-State} $\ast$ {\em L}, \/  int {\em t}, \/  int {\em ref})}}
\label{lauxlib_8h_6200030ecae784852045161274501e0e}


\hypertarget{lauxlib_8h_269122a77674ca63c9193c2a30b4729e}{
\index{lauxlib.h@{lauxlib.h}!luaL\_\-where@{luaL\_\-where}}
\index{luaL\_\-where@{luaL\_\-where}!lauxlib.h@{lauxlib.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUALIB\_\-API void() luaL\_\-where ({\bf lua\_\-State} $\ast$ {\em L}, \/  int {\em lvl})}}
\label{lauxlib_8h_269122a77674ca63c9193c2a30b4729e}


