\hypertarget{loadlib_8c}{
\section{loadlib.c File Reference}
\label{loadlib_8c}\index{loadlib.c@{loadlib.c}}
}
{\tt \#include $<$stdlib.h$>$}\par
{\tt \#include $<$string.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{loadlib_8c_204928807a3aea44a5765758cec7e49a}{loadlib\_\-c}
\item 
\#define \hyperlink{loadlib_8c_884b19ad6094d6238c4072a8064aeb12}{LUA\_\-LIB}
\item 
\#define \hyperlink{loadlib_8c_e484759202e13c0121badd902b707955}{LUA\_\-POF}~\char`\"{}luaopen\_\-\char`\"{}
\item 
\#define \hyperlink{loadlib_8c_ddb93481df7869f7e8c6f85ad7ed3e53}{LUA\_\-OFSEP}~\char`\"{}\_\-\char`\"{}
\item 
\#define \hyperlink{loadlib_8c_c4284d505cf6e3bce125779fb9555854}{LIBPREFIX}~\char`\"{}LOADLIB: \char`\"{}
\item 
\#define \hyperlink{loadlib_8c_f02a2c69c6913b9e21a0c48886c30e45}{POF}~LUA\_\-POF
\item 
\#define \hyperlink{loadlib_8c_f0b680e98ad7c321efb7b5e46f7e69c4}{LIB\_\-FAIL}~\char`\"{}open\char`\"{}
\item 
\#define \hyperlink{loadlib_8c_3a24a5a8d141a252b170da80f26a1f2f}{ERRLIB}~1
\item 
\#define \hyperlink{loadlib_8c_51529ffe3184e16719bcb031a03c8f6f}{ERRFUNC}~2
\item 
\#define \hyperlink{loadlib_8c_af2f653c673bdd616a05f1643e1784ab}{setprogdir}(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})~((void)0)
\item 
\#define \hyperlink{loadlib_8c_f0b680e98ad7c321efb7b5e46f7e69c4}{LIB\_\-FAIL}~\char`\"{}absent\char`\"{}
\item 
\#define \hyperlink{loadlib_8c_e5b5e1b4773252e50831be85fbf40777}{DLMSG}~\char`\"{}dynamic libraries not enabled; check your Lua installation\char`\"{}
\item 
\#define \hyperlink{loadlib_8c_8e026616b5e63f2c3c7540faf69830bc}{sentinel}~((void $\ast$)\&\hyperlink{loadlib_8c_2454f968f6853915a05e6fc42eb8ab69}{sentinel\_\-})
\item 
\#define \hyperlink{loadlib_8c_f4edcb620f5d890946a11a016979fc69}{AUXMARK}~\char`\"{}$\backslash$1\char`\"{}
\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
static void \hyperlink{loadlib_8c_c7ec1a62c9eed4445cb05b9349a0eca9}{ll\_\-unloadlib} (void $\ast$lib)
\item 
static void $\ast$ \hyperlink{loadlib_8c_5f0e1acb04a0d5a9eec46c69c82ab233}{ll\_\-load} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, const char $\ast$\hyperlink{main_8c_1ecbbe01a19f7d48573b6599b1e426a8}{path})
\item 
static \hyperlink{lua_8h_5f5bedea265eccf43c6e404e020988ce}{lua\_\-CFunction} \hyperlink{loadlib_8c_574c886673db3ba5856c631f16fd05d5}{ll\_\-sym} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, void $\ast$lib, const char $\ast$sym)
\item 
static void $\ast$$\ast$ \hyperlink{loadlib_8c_3e30a9b84cfee9beeff4895fd75a7133}{ll\_\-register} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, const char $\ast$\hyperlink{main_8c_1ecbbe01a19f7d48573b6599b1e426a8}{path})
\item 
static int \hyperlink{loadlib_8c_59926ced6bee14c7b952ef79d3520084}{gctm} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})
\item 
static int \hyperlink{loadlib_8c_21b83479d4a62aa393b19bcb08e71889}{ll\_\-loadfunc} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, const char $\ast$\hyperlink{main_8c_1ecbbe01a19f7d48573b6599b1e426a8}{path}, const char $\ast$sym)
\item 
static int \hyperlink{loadlib_8c_ac7e69bc5b4403e49e2609425f0fb7b0}{ll\_\-loadlib} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})
\item 
static int \hyperlink{loadlib_8c_fb05ec3460e3f9ccfb9450d2c3e22e5c}{readable} (const char $\ast$filename)
\item 
static const char $\ast$ \hyperlink{loadlib_8c_a1ea5ee1b54a06650a887c4ee05a8547}{pushnexttemplate} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, const char $\ast$\hyperlink{main_8c_1ecbbe01a19f7d48573b6599b1e426a8}{path})
\item 
static const char $\ast$ \hyperlink{loadlib_8c_1f52c9a016cc60417c047d0b983f8879}{findfile} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, const char $\ast$name, const char $\ast$pname)
\item 
static void \hyperlink{loadlib_8c_5790907eb524543b8696cc240d85375b}{loaderror} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, const char $\ast$filename)
\item 
static int \hyperlink{loadlib_8c_476dfd5089a92448dd45a436ff5f0858}{loader\_\-Lua} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})
\item 
static const char $\ast$ \hyperlink{loadlib_8c_7898f2299a568844caba1d891052e30a}{mkfuncname} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, const char $\ast$modname)
\item 
static int \hyperlink{loadlib_8c_4cee0d8326883e145eab3bd4ed0921ea}{loader\_\-C} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})
\item 
static int \hyperlink{loadlib_8c_e32592168d16d68f9c3a9d4a465c953d}{loader\_\-Croot} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})
\item 
static int \hyperlink{loadlib_8c_8a375a47421bf929c759b00f0a2ab86b}{loader\_\-preload} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})
\item 
static int \hyperlink{loadlib_8c_136874f5faa236dc52fb50109281e157}{ll\_\-require} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})
\item 
static void \hyperlink{loadlib_8c_7096599af723d135172d5d7b99a94590}{setfenv} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})
\item 
static void \hyperlink{loadlib_8c_7487580815cb38c49da1a5c3a63814dd}{dooptions} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, int n)
\item 
static void \hyperlink{loadlib_8c_1e0cb7167ac19d00ccfc090de2eee5ce}{modinit} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, const char $\ast$modname)
\item 
static int \hyperlink{loadlib_8c_c661b1cdd82c170da64c437334759903}{ll\_\-module} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})
\item 
static int \hyperlink{loadlib_8c_94e2a9ec86ece6153b65d006256ef847}{ll\_\-seeall} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})
\item 
static void \hyperlink{loadlib_8c_93a0e5dbc2792e6ea288431deff89234}{setpath} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, const char $\ast$fieldname, const char $\ast$envname, const char $\ast$def)
\item 
LUALIB\_\-API int \hyperlink{loadlib_8c_8f3b21c783cca4c6b11aa3a1c5cf2b2e}{luaopen\_\-package} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})
\end{CompactItemize}
\subsection*{Variables}
\begin{CompactItemize}
\item 
static const int \hyperlink{loadlib_8c_2454f968f6853915a05e6fc42eb8ab69}{sentinel\_\-} = 0
\item 
static const \hyperlink{structluaL__Reg}{luaL\_\-Reg} \hyperlink{loadlib_8c_ffe9983330951f9d54e6d1e60c39f0b2}{pk\_\-funcs} \mbox{[}$\,$\mbox{]}
\item 
static const \hyperlink{structluaL__Reg}{luaL\_\-Reg} \hyperlink{loadlib_8c_31e112bcc81318116cc6473f5f015e17}{ll\_\-funcs} \mbox{[}$\,$\mbox{]}
\item 
static const \hyperlink{lua_8h_5f5bedea265eccf43c6e404e020988ce}{lua\_\-CFunction} \hyperlink{loadlib_8c_8286f435fb41a9aed68d2bb6f19a4a01}{loaders} \mbox{[}$\,$\mbox{]}
\end{CompactItemize}


\subsection{Define Documentation}
\hypertarget{loadlib_8c_f4edcb620f5d890946a11a016979fc69}{
\index{loadlib.c@{loadlib.c}!AUXMARK@{AUXMARK}}
\index{AUXMARK@{AUXMARK}!loadlib.c@{loadlib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define AUXMARK~\char`\"{}$\backslash$1\char`\"{}}}
\label{loadlib_8c_f4edcb620f5d890946a11a016979fc69}


\hypertarget{loadlib_8c_e5b5e1b4773252e50831be85fbf40777}{
\index{loadlib.c@{loadlib.c}!DLMSG@{DLMSG}}
\index{DLMSG@{DLMSG}!loadlib.c@{loadlib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define DLMSG~\char`\"{}dynamic libraries not enabled; check your Lua installation\char`\"{}}}
\label{loadlib_8c_e5b5e1b4773252e50831be85fbf40777}


\hypertarget{loadlib_8c_51529ffe3184e16719bcb031a03c8f6f}{
\index{loadlib.c@{loadlib.c}!ERRFUNC@{ERRFUNC}}
\index{ERRFUNC@{ERRFUNC}!loadlib.c@{loadlib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define ERRFUNC~2}}
\label{loadlib_8c_51529ffe3184e16719bcb031a03c8f6f}


\hypertarget{loadlib_8c_3a24a5a8d141a252b170da80f26a1f2f}{
\index{loadlib.c@{loadlib.c}!ERRLIB@{ERRLIB}}
\index{ERRLIB@{ERRLIB}!loadlib.c@{loadlib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define ERRLIB~1}}
\label{loadlib_8c_3a24a5a8d141a252b170da80f26a1f2f}


\hypertarget{loadlib_8c_f0b680e98ad7c321efb7b5e46f7e69c4}{
\index{loadlib.c@{loadlib.c}!LIB\_\-FAIL@{LIB\_\-FAIL}}
\index{LIB\_\-FAIL@{LIB\_\-FAIL}!loadlib.c@{loadlib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define LIB\_\-FAIL~\char`\"{}absent\char`\"{}}}
\label{loadlib_8c_f0b680e98ad7c321efb7b5e46f7e69c4}


\hypertarget{loadlib_8c_f0b680e98ad7c321efb7b5e46f7e69c4}{
\index{loadlib.c@{loadlib.c}!LIB\_\-FAIL@{LIB\_\-FAIL}}
\index{LIB\_\-FAIL@{LIB\_\-FAIL}!loadlib.c@{loadlib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define LIB\_\-FAIL~\char`\"{}open\char`\"{}}}
\label{loadlib_8c_f0b680e98ad7c321efb7b5e46f7e69c4}


\hypertarget{loadlib_8c_c4284d505cf6e3bce125779fb9555854}{
\index{loadlib.c@{loadlib.c}!LIBPREFIX@{LIBPREFIX}}
\index{LIBPREFIX@{LIBPREFIX}!loadlib.c@{loadlib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define LIBPREFIX~\char`\"{}LOADLIB: \char`\"{}}}
\label{loadlib_8c_c4284d505cf6e3bce125779fb9555854}


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


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


\hypertarget{loadlib_8c_ddb93481df7869f7e8c6f85ad7ed3e53}{
\index{loadlib.c@{loadlib.c}!LUA\_\-OFSEP@{LUA\_\-OFSEP}}
\index{LUA\_\-OFSEP@{LUA\_\-OFSEP}!loadlib.c@{loadlib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define LUA\_\-OFSEP~\char`\"{}\_\-\char`\"{}}}
\label{loadlib_8c_ddb93481df7869f7e8c6f85ad7ed3e53}


\hypertarget{loadlib_8c_e484759202e13c0121badd902b707955}{
\index{loadlib.c@{loadlib.c}!LUA\_\-POF@{LUA\_\-POF}}
\index{LUA\_\-POF@{LUA\_\-POF}!loadlib.c@{loadlib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define LUA\_\-POF~\char`\"{}luaopen\_\-\char`\"{}}}
\label{loadlib_8c_e484759202e13c0121badd902b707955}


\hypertarget{loadlib_8c_f02a2c69c6913b9e21a0c48886c30e45}{
\index{loadlib.c@{loadlib.c}!POF@{POF}}
\index{POF@{POF}!loadlib.c@{loadlib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define POF~LUA\_\-POF}}
\label{loadlib_8c_f02a2c69c6913b9e21a0c48886c30e45}


\hypertarget{loadlib_8c_8e026616b5e63f2c3c7540faf69830bc}{
\index{loadlib.c@{loadlib.c}!sentinel@{sentinel}}
\index{sentinel@{sentinel}!loadlib.c@{loadlib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define sentinel~((void $\ast$)\&{\bf sentinel\_\-})}}
\label{loadlib_8c_8e026616b5e63f2c3c7540faf69830bc}


\hypertarget{loadlib_8c_af2f653c673bdd616a05f1643e1784ab}{
\index{loadlib.c@{loadlib.c}!setprogdir@{setprogdir}}
\index{setprogdir@{setprogdir}!loadlib.c@{loadlib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define setprogdir({\bf L})~((void)0)}}
\label{loadlib_8c_af2f653c673bdd616a05f1643e1784ab}




\subsection{Function Documentation}
\hypertarget{loadlib_8c_7487580815cb38c49da1a5c3a63814dd}{
\index{loadlib.c@{loadlib.c}!dooptions@{dooptions}}
\index{dooptions@{dooptions}!loadlib.c@{loadlib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static void dooptions ({\bf lua\_\-State} $\ast$ {\em L}, \/  int {\em n})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{loadlib_8c_7487580815cb38c49da1a5c3a63814dd}


\hypertarget{loadlib_8c_1f52c9a016cc60417c047d0b983f8879}{
\index{loadlib.c@{loadlib.c}!findfile@{findfile}}
\index{findfile@{findfile}!loadlib.c@{loadlib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static const char$\ast$ findfile ({\bf lua\_\-State} $\ast$ {\em L}, \/  const char $\ast$ {\em name}, \/  const char $\ast$ {\em pname})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{loadlib_8c_1f52c9a016cc60417c047d0b983f8879}


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


\hypertarget{loadlib_8c_5f0e1acb04a0d5a9eec46c69c82ab233}{
\index{loadlib.c@{loadlib.c}!ll\_\-load@{ll\_\-load}}
\index{ll\_\-load@{ll\_\-load}!loadlib.c@{loadlib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static void $\ast$ ll\_\-load ({\bf lua\_\-State} $\ast$ {\em L}, \/  const char $\ast$ {\em path})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{loadlib_8c_5f0e1acb04a0d5a9eec46c69c82ab233}


\hypertarget{loadlib_8c_21b83479d4a62aa393b19bcb08e71889}{
\index{loadlib.c@{loadlib.c}!ll\_\-loadfunc@{ll\_\-loadfunc}}
\index{ll\_\-loadfunc@{ll\_\-loadfunc}!loadlib.c@{loadlib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int ll\_\-loadfunc ({\bf lua\_\-State} $\ast$ {\em L}, \/  const char $\ast$ {\em path}, \/  const char $\ast$ {\em sym})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{loadlib_8c_21b83479d4a62aa393b19bcb08e71889}


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


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


\hypertarget{loadlib_8c_3e30a9b84cfee9beeff4895fd75a7133}{
\index{loadlib.c@{loadlib.c}!ll\_\-register@{ll\_\-register}}
\index{ll\_\-register@{ll\_\-register}!loadlib.c@{loadlib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static void$\ast$$\ast$ ll\_\-register ({\bf lua\_\-State} $\ast$ {\em L}, \/  const char $\ast$ {\em path})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{loadlib_8c_3e30a9b84cfee9beeff4895fd75a7133}


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


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


\hypertarget{loadlib_8c_574c886673db3ba5856c631f16fd05d5}{
\index{loadlib.c@{loadlib.c}!ll\_\-sym@{ll\_\-sym}}
\index{ll\_\-sym@{ll\_\-sym}!loadlib.c@{loadlib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static {\bf lua\_\-CFunction} ll\_\-sym ({\bf lua\_\-State} $\ast$ {\em L}, \/  void $\ast$ {\em lib}, \/  const char $\ast$ {\em sym})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{loadlib_8c_574c886673db3ba5856c631f16fd05d5}


\hypertarget{loadlib_8c_c7ec1a62c9eed4445cb05b9349a0eca9}{
\index{loadlib.c@{loadlib.c}!ll\_\-unloadlib@{ll\_\-unloadlib}}
\index{ll\_\-unloadlib@{ll\_\-unloadlib}!loadlib.c@{loadlib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static void ll\_\-unloadlib (void $\ast$ {\em lib})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{loadlib_8c_c7ec1a62c9eed4445cb05b9349a0eca9}


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


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


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


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


\hypertarget{loadlib_8c_5790907eb524543b8696cc240d85375b}{
\index{loadlib.c@{loadlib.c}!loaderror@{loaderror}}
\index{loaderror@{loaderror}!loadlib.c@{loadlib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static void loaderror ({\bf lua\_\-State} $\ast$ {\em L}, \/  const char $\ast$ {\em filename})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{loadlib_8c_5790907eb524543b8696cc240d85375b}


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


\hypertarget{loadlib_8c_7898f2299a568844caba1d891052e30a}{
\index{loadlib.c@{loadlib.c}!mkfuncname@{mkfuncname}}
\index{mkfuncname@{mkfuncname}!loadlib.c@{loadlib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static const char$\ast$ mkfuncname ({\bf lua\_\-State} $\ast$ {\em L}, \/  const char $\ast$ {\em modname})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{loadlib_8c_7898f2299a568844caba1d891052e30a}


\hypertarget{loadlib_8c_1e0cb7167ac19d00ccfc090de2eee5ce}{
\index{loadlib.c@{loadlib.c}!modinit@{modinit}}
\index{modinit@{modinit}!loadlib.c@{loadlib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static void modinit ({\bf lua\_\-State} $\ast$ {\em L}, \/  const char $\ast$ {\em modname})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{loadlib_8c_1e0cb7167ac19d00ccfc090de2eee5ce}


\hypertarget{loadlib_8c_a1ea5ee1b54a06650a887c4ee05a8547}{
\index{loadlib.c@{loadlib.c}!pushnexttemplate@{pushnexttemplate}}
\index{pushnexttemplate@{pushnexttemplate}!loadlib.c@{loadlib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static const char$\ast$ pushnexttemplate ({\bf lua\_\-State} $\ast$ {\em L}, \/  const char $\ast$ {\em path})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{loadlib_8c_a1ea5ee1b54a06650a887c4ee05a8547}


\hypertarget{loadlib_8c_fb05ec3460e3f9ccfb9450d2c3e22e5c}{
\index{loadlib.c@{loadlib.c}!readable@{readable}}
\index{readable@{readable}!loadlib.c@{loadlib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int readable (const char $\ast$ {\em filename})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{loadlib_8c_fb05ec3460e3f9ccfb9450d2c3e22e5c}


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


\hypertarget{loadlib_8c_93a0e5dbc2792e6ea288431deff89234}{
\index{loadlib.c@{loadlib.c}!setpath@{setpath}}
\index{setpath@{setpath}!loadlib.c@{loadlib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static void setpath ({\bf lua\_\-State} $\ast$ {\em L}, \/  const char $\ast$ {\em fieldname}, \/  const char $\ast$ {\em envname}, \/  const char $\ast$ {\em def})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{loadlib_8c_93a0e5dbc2792e6ea288431deff89234}




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


\textbf{Initial value:}

\begin{Code}\begin{verbatim} {
  {"module", ll_module},
  {"require", ll_require},
  {NULL, NULL}
}
\end{verbatim}
\end{Code}
\hypertarget{loadlib_8c_8286f435fb41a9aed68d2bb6f19a4a01}{
\index{loadlib.c@{loadlib.c}!loaders@{loaders}}
\index{loaders@{loaders}!loadlib.c@{loadlib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf lua\_\-CFunction} {\bf loaders}\mbox{[}$\,$\mbox{]}\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{loadlib_8c_8286f435fb41a9aed68d2bb6f19a4a01}


\textbf{Initial value:}

\begin{Code}\begin{verbatim}
  {loader_preload, loader_Lua, loader_C, loader_Croot, NULL}
\end{verbatim}
\end{Code}
\hypertarget{loadlib_8c_ffe9983330951f9d54e6d1e60c39f0b2}{
\index{loadlib.c@{loadlib.c}!pk\_\-funcs@{pk\_\-funcs}}
\index{pk\_\-funcs@{pk\_\-funcs}!loadlib.c@{loadlib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf luaL\_\-Reg} {\bf pk\_\-funcs}\mbox{[}$\,$\mbox{]}\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{loadlib_8c_ffe9983330951f9d54e6d1e60c39f0b2}


\textbf{Initial value:}

\begin{Code}\begin{verbatim} {
  {"loadlib", ll_loadlib},
  {"seeall", ll_seeall},
  {NULL, NULL}
}
\end{verbatim}
\end{Code}
\hypertarget{loadlib_8c_2454f968f6853915a05e6fc42eb8ab69}{
\index{loadlib.c@{loadlib.c}!sentinel\_\-@{sentinel\_\-}}
\index{sentinel\_\-@{sentinel\_\-}!loadlib.c@{loadlib.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const int {\bf sentinel\_\-} = 0\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{loadlib_8c_2454f968f6853915a05e6fc42eb8ab69}


