\hypertarget{lfunc_8h}{
\section{lfunc.h File Reference}
\label{lfunc_8h}\index{lfunc.h@{lfunc.h}}
}
{\tt \#include \char`\"{}lobject.h\char`\"{}}\par
\subsection*{Defines}
\begin{CompactItemize}
\item 
\#define \hyperlink{lfunc_8h_e0283669f47da8432046d0a24c1db93e}{sizeCclosure}(n)
\item 
\#define \hyperlink{lfunc_8h_b5551e284145e5258a8032a97806cfe1}{sizeLclosure}(n)
\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
LUAI\_\-FUNC \hyperlink{structProto}{Proto} $\ast$ \hyperlink{lfunc_8h_3afa5dbaef50a7e84627e779d27c5720}{luaF\_\-newproto} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})
\item 
LUAI\_\-FUNC \hyperlink{unionClosure}{Closure} $\ast$ \hyperlink{lfunc_8h_648e1958c8d761addefce0b6cf2d1fee}{luaF\_\-newCclosure} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, int nelems, \hyperlink{structTable}{Table} $\ast$e)
\item 
LUAI\_\-FUNC \hyperlink{unionClosure}{Closure} $\ast$ \hyperlink{lfunc_8h_5d5a134a0fe5f67120d2ea062127ea2f}{luaF\_\-newLclosure} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, int nelems, \hyperlink{structTable}{Table} $\ast$e)
\item 
LUAI\_\-FUNC \hyperlink{structUpVal}{UpVal} $\ast$ \hyperlink{lfunc_8h_25f29ce0b4c97906e0f674dcec3691fb}{luaF\_\-newupval} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})
\item 
LUAI\_\-FUNC \hyperlink{structUpVal}{UpVal} $\ast$ \hyperlink{lfunc_8h_b4901d5786cbea213d8e200500999a76}{luaF\_\-findupval} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, \hyperlink{structlua__TValue}{StkId} level)
\item 
LUAI\_\-FUNC void \hyperlink{lfunc_8h_059f8cf02f13f391fa02ad85d9057f8f}{luaF\_\-close} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, \hyperlink{structlua__TValue}{StkId} level)
\item 
LUAI\_\-FUNC void \hyperlink{lfunc_8h_0cc4051310ee836ef266607da3a58499}{luaF\_\-freeproto} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, \hyperlink{structProto}{Proto} $\ast$f)
\item 
LUAI\_\-FUNC void \hyperlink{lfunc_8h_fae29a9835781956fb02db02d1bc5a84}{luaF\_\-freeclosure} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, \hyperlink{unionClosure}{Closure} $\ast$c)
\item 
LUAI\_\-FUNC void \hyperlink{lfunc_8h_5e378b050a1fd4e4fa99939656a56a9c}{luaF\_\-freeupval} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, \hyperlink{structUpVal}{UpVal} $\ast$uv)
\item 
LUAI\_\-FUNC const char $\ast$ \hyperlink{lfunc_8h_397e1a43935e0aebf20ae6e12d52befd}{luaF\_\-getlocalname} (const \hyperlink{structProto}{Proto} $\ast$func, int local\_\-number, int pc)
\end{CompactItemize}


\subsection{Define Documentation}
\hypertarget{lfunc_8h_e0283669f47da8432046d0a24c1db93e}{
\index{lfunc.h@{lfunc.h}!sizeCclosure@{sizeCclosure}}
\index{sizeCclosure@{sizeCclosure}!lfunc.h@{lfunc.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define sizeCclosure(n)}}
\label{lfunc_8h_e0283669f47da8432046d0a24c1db93e}


\textbf{Value:}

\begin{Code}\begin{verbatim}(cast(int, sizeof(CClosure)) + \
                         cast(int, sizeof(TValue)*((n)-1)))
\end{verbatim}
\end{Code}
\hypertarget{lfunc_8h_b5551e284145e5258a8032a97806cfe1}{
\index{lfunc.h@{lfunc.h}!sizeLclosure@{sizeLclosure}}
\index{sizeLclosure@{sizeLclosure}!lfunc.h@{lfunc.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define sizeLclosure(n)}}
\label{lfunc_8h_b5551e284145e5258a8032a97806cfe1}


\textbf{Value:}

\begin{Code}\begin{verbatim}(cast(int, sizeof(LClosure)) + \
                         cast(int, sizeof(TValue *)*((n)-1)))
\end{verbatim}
\end{Code}


\subsection{Function Documentation}
\hypertarget{lfunc_8h_059f8cf02f13f391fa02ad85d9057f8f}{
\index{lfunc.h@{lfunc.h}!luaF\_\-close@{luaF\_\-close}}
\index{luaF\_\-close@{luaF\_\-close}!lfunc.h@{lfunc.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUAI\_\-FUNC void luaF\_\-close ({\bf lua\_\-State} $\ast$ {\em L}, \/  {\bf StkId} {\em level})}}
\label{lfunc_8h_059f8cf02f13f391fa02ad85d9057f8f}


\hypertarget{lfunc_8h_b4901d5786cbea213d8e200500999a76}{
\index{lfunc.h@{lfunc.h}!luaF\_\-findupval@{luaF\_\-findupval}}
\index{luaF\_\-findupval@{luaF\_\-findupval}!lfunc.h@{lfunc.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUAI\_\-FUNC {\bf UpVal}$\ast$ luaF\_\-findupval ({\bf lua\_\-State} $\ast$ {\em L}, \/  {\bf StkId} {\em level})}}
\label{lfunc_8h_b4901d5786cbea213d8e200500999a76}


\hypertarget{lfunc_8h_fae29a9835781956fb02db02d1bc5a84}{
\index{lfunc.h@{lfunc.h}!luaF\_\-freeclosure@{luaF\_\-freeclosure}}
\index{luaF\_\-freeclosure@{luaF\_\-freeclosure}!lfunc.h@{lfunc.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUAI\_\-FUNC void luaF\_\-freeclosure ({\bf lua\_\-State} $\ast$ {\em L}, \/  {\bf Closure} $\ast$ {\em c})}}
\label{lfunc_8h_fae29a9835781956fb02db02d1bc5a84}


\hypertarget{lfunc_8h_0cc4051310ee836ef266607da3a58499}{
\index{lfunc.h@{lfunc.h}!luaF\_\-freeproto@{luaF\_\-freeproto}}
\index{luaF\_\-freeproto@{luaF\_\-freeproto}!lfunc.h@{lfunc.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUAI\_\-FUNC void luaF\_\-freeproto ({\bf lua\_\-State} $\ast$ {\em L}, \/  {\bf Proto} $\ast$ {\em f})}}
\label{lfunc_8h_0cc4051310ee836ef266607da3a58499}


\hypertarget{lfunc_8h_5e378b050a1fd4e4fa99939656a56a9c}{
\index{lfunc.h@{lfunc.h}!luaF\_\-freeupval@{luaF\_\-freeupval}}
\index{luaF\_\-freeupval@{luaF\_\-freeupval}!lfunc.h@{lfunc.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUAI\_\-FUNC void luaF\_\-freeupval ({\bf lua\_\-State} $\ast$ {\em L}, \/  {\bf UpVal} $\ast$ {\em uv})}}
\label{lfunc_8h_5e378b050a1fd4e4fa99939656a56a9c}


\hypertarget{lfunc_8h_397e1a43935e0aebf20ae6e12d52befd}{
\index{lfunc.h@{lfunc.h}!luaF\_\-getlocalname@{luaF\_\-getlocalname}}
\index{luaF\_\-getlocalname@{luaF\_\-getlocalname}!lfunc.h@{lfunc.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUAI\_\-FUNC const char$\ast$ luaF\_\-getlocalname (const {\bf Proto} $\ast$ {\em func}, \/  int {\em local\_\-number}, \/  int {\em pc})}}
\label{lfunc_8h_397e1a43935e0aebf20ae6e12d52befd}


\hypertarget{lfunc_8h_648e1958c8d761addefce0b6cf2d1fee}{
\index{lfunc.h@{lfunc.h}!luaF\_\-newCclosure@{luaF\_\-newCclosure}}
\index{luaF\_\-newCclosure@{luaF\_\-newCclosure}!lfunc.h@{lfunc.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUAI\_\-FUNC {\bf Closure}$\ast$ luaF\_\-newCclosure ({\bf lua\_\-State} $\ast$ {\em L}, \/  int {\em nelems}, \/  {\bf Table} $\ast$ {\em e})}}
\label{lfunc_8h_648e1958c8d761addefce0b6cf2d1fee}


\hypertarget{lfunc_8h_5d5a134a0fe5f67120d2ea062127ea2f}{
\index{lfunc.h@{lfunc.h}!luaF\_\-newLclosure@{luaF\_\-newLclosure}}
\index{luaF\_\-newLclosure@{luaF\_\-newLclosure}!lfunc.h@{lfunc.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUAI\_\-FUNC {\bf Closure}$\ast$ luaF\_\-newLclosure ({\bf lua\_\-State} $\ast$ {\em L}, \/  int {\em nelems}, \/  {\bf Table} $\ast$ {\em e})}}
\label{lfunc_8h_5d5a134a0fe5f67120d2ea062127ea2f}


\hypertarget{lfunc_8h_3afa5dbaef50a7e84627e779d27c5720}{
\index{lfunc.h@{lfunc.h}!luaF\_\-newproto@{luaF\_\-newproto}}
\index{luaF\_\-newproto@{luaF\_\-newproto}!lfunc.h@{lfunc.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUAI\_\-FUNC {\bf Proto}$\ast$ luaF\_\-newproto ({\bf lua\_\-State} $\ast$ {\em L})}}
\label{lfunc_8h_3afa5dbaef50a7e84627e779d27c5720}


\hypertarget{lfunc_8h_25f29ce0b4c97906e0f674dcec3691fb}{
\index{lfunc.h@{lfunc.h}!luaF\_\-newupval@{luaF\_\-newupval}}
\index{luaF\_\-newupval@{luaF\_\-newupval}!lfunc.h@{lfunc.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUAI\_\-FUNC {\bf UpVal}$\ast$ luaF\_\-newupval ({\bf lua\_\-State} $\ast$ {\em L})}}
\label{lfunc_8h_25f29ce0b4c97906e0f674dcec3691fb}


