\hypertarget{ldo_8h}{
\section{ldo.h File Reference}
\label{ldo_8h}\index{ldo.h@{ldo.h}}
}
{\tt \#include \char`\"{}lobject.h\char`\"{}}\par
{\tt \#include \char`\"{}lstate.h\char`\"{}}\par
{\tt \#include \char`\"{}lzio.h\char`\"{}}\par
\subsection*{Defines}
\begin{CompactItemize}
\item 
\#define \hyperlink{ldo_8h_b1500a6449b9cdf335e3c7ce23aa85d7}{luaD\_\-checkstack}(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, n)
\item 
\#define \hyperlink{ldo_8h_9c102d2b8b9a0a52bbb15eeeb4e0cbac}{incr\_\-top}(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})~\{luaD\_\-checkstack(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L},1); \hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L} $\rightarrow$ top++;\}
\item 
\#define \hyperlink{ldo_8h_3534573bbeec89c6dbdb3eae5a54f9b9}{savestack}(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, p)~((char $\ast$)(p) - (char $\ast$)\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L} $\rightarrow$ stack)
\item 
\#define \hyperlink{ldo_8h_3fbde7f289e6bf661575e9b802da9e78}{restorestack}(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, n)~((\hyperlink{structlua__TValue}{TValue} $\ast$)((char $\ast$)\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L} $\rightarrow$ stack + (n)))
\item 
\#define \hyperlink{ldo_8h_401e89c5a5f2b1dd29b87edeb5367773}{saveci}(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, p)~((char $\ast$)(p) - (char $\ast$)\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L} $\rightarrow$ base\_\-ci)
\item 
\#define \hyperlink{ldo_8h_b497c989cbf1c89fba3a46e455049062}{restoreci}(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, n)~((\hyperlink{structCallInfo}{CallInfo} $\ast$)((char $\ast$)\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L} $\rightarrow$ base\_\-ci + (n)))
\item 
\#define \hyperlink{ldo_8h_117e78798c8e00245bdf3284815e454d}{PCRLUA}~0
\item 
\#define \hyperlink{ldo_8h_ab301a1c468f946b9a26e4c0b1176a75}{PCRC}~1
\item 
\#define \hyperlink{ldo_8h_5af19280b560630c3c2b8e757056649a}{PCRYIELD}~2
\end{CompactItemize}
\subsection*{Typedefs}
\begin{CompactItemize}
\item 
typedef void($\ast$ \hyperlink{ldo_8h_ae5ec0aea78f2b0b2cf7ec8fa6498b36}{Pfunc} )(\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, void $\ast$ud)
\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
LUAI\_\-FUNC int \hyperlink{ldo_8h_e036ec2259d01bf86ef09e5f7d7137c7}{luaD\_\-protectedparser} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, \hyperlink{structZio}{ZIO} $\ast$z, const char $\ast$name)
\item 
LUAI\_\-FUNC void \hyperlink{ldo_8h_4c0f7c1cdee0c8063a85fd206ca64eeb}{luaD\_\-callhook} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, int event, int line)
\item 
LUAI\_\-FUNC int \hyperlink{ldo_8h_f2326bf8464de1e4ce3c5f7aef2ed5d4}{luaD\_\-precall} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, \hyperlink{structlua__TValue}{StkId} func, int nresults)
\item 
LUAI\_\-FUNC void \hyperlink{ldo_8h_4797364de1dd297aac52f9c10565523f}{luaD\_\-call} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, \hyperlink{structlua__TValue}{StkId} func, int nResults)
\item 
LUAI\_\-FUNC int \hyperlink{ldo_8h_d1087faa52e2bb98c00806ea1ac198a6}{luaD\_\-pcall} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, \hyperlink{ldo_8h_ae5ec0aea78f2b0b2cf7ec8fa6498b36}{Pfunc} func, void $\ast$u, ptrdiff\_\-t oldtop, ptrdiff\_\-t ef)
\item 
LUAI\_\-FUNC int \hyperlink{ldo_8h_6a05007b2d1b5768b5edf8509d4a952a}{luaD\_\-poscall} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, \hyperlink{structlua__TValue}{StkId} firstResult)
\item 
LUAI\_\-FUNC void \hyperlink{ldo_8h_4ff32c55282c0d22951b5b02bb247591}{luaD\_\-reallocCI} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, int newsize)
\item 
LUAI\_\-FUNC void \hyperlink{ldo_8h_288c8536559791569d9ed49b16c6e99a}{luaD\_\-reallocstack} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, int newsize)
\item 
LUAI\_\-FUNC void \hyperlink{ldo_8h_b83418a7edbfafe87886f156aa6a9988}{luaD\_\-growstack} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, int n)
\item 
LUAI\_\-FUNC void \hyperlink{ldo_8h_01801cbacc19b0af9bbdb16d796bc08f}{luaD\_\-throw} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, int errcode)
\item 
LUAI\_\-FUNC int \hyperlink{ldo_8h_73f5a10f0554f95bde20c7b9ace4397a}{luaD\_\-rawrunprotected} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, \hyperlink{ldo_8h_ae5ec0aea78f2b0b2cf7ec8fa6498b36}{Pfunc} f, void $\ast$ud)
\item 
LUAI\_\-FUNC void \hyperlink{ldo_8h_1cb94c83c7ff13f34638523d7500a0bf}{luaD\_\-seterrorobj} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, int errcode, \hyperlink{structlua__TValue}{StkId} oldtop)
\end{CompactItemize}


\subsection{Define Documentation}
\hypertarget{ldo_8h_9c102d2b8b9a0a52bbb15eeeb4e0cbac}{
\index{ldo.h@{ldo.h}!incr\_\-top@{incr\_\-top}}
\index{incr\_\-top@{incr\_\-top}!ldo.h@{ldo.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define incr\_\-top({\bf L})~\{luaD\_\-checkstack({\bf L},1); {\bf L} $\rightarrow$ top++;\}}}
\label{ldo_8h_9c102d2b8b9a0a52bbb15eeeb4e0cbac}


\hypertarget{ldo_8h_b1500a6449b9cdf335e3c7ce23aa85d7}{
\index{ldo.h@{ldo.h}!luaD\_\-checkstack@{luaD\_\-checkstack}}
\index{luaD\_\-checkstack@{luaD\_\-checkstack}!ldo.h@{ldo.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define luaD\_\-checkstack({\bf L}, \/  n)}}
\label{ldo_8h_b1500a6449b9cdf335e3c7ce23aa85d7}


\textbf{Value:}

\begin{Code}\begin{verbatim}if ((char *)L->stack_last - (char *)L->top <= (n)*(int)sizeof(TValue)) \
    luaD_growstack(L, n); \
  else condhardstacktests(luaD_reallocstack(L, L->stacksize - EXTRA_STACK - 1));
\end{verbatim}
\end{Code}
\hypertarget{ldo_8h_ab301a1c468f946b9a26e4c0b1176a75}{
\index{ldo.h@{ldo.h}!PCRC@{PCRC}}
\index{PCRC@{PCRC}!ldo.h@{ldo.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define PCRC~1}}
\label{ldo_8h_ab301a1c468f946b9a26e4c0b1176a75}


\hypertarget{ldo_8h_117e78798c8e00245bdf3284815e454d}{
\index{ldo.h@{ldo.h}!PCRLUA@{PCRLUA}}
\index{PCRLUA@{PCRLUA}!ldo.h@{ldo.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define PCRLUA~0}}
\label{ldo_8h_117e78798c8e00245bdf3284815e454d}


\hypertarget{ldo_8h_5af19280b560630c3c2b8e757056649a}{
\index{ldo.h@{ldo.h}!PCRYIELD@{PCRYIELD}}
\index{PCRYIELD@{PCRYIELD}!ldo.h@{ldo.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define PCRYIELD~2}}
\label{ldo_8h_5af19280b560630c3c2b8e757056649a}


\hypertarget{ldo_8h_b497c989cbf1c89fba3a46e455049062}{
\index{ldo.h@{ldo.h}!restoreci@{restoreci}}
\index{restoreci@{restoreci}!ldo.h@{ldo.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define restoreci({\bf L}, \/  n)~(({\bf CallInfo} $\ast$)((char $\ast$){\bf L} $\rightarrow$ base\_\-ci + (n)))}}
\label{ldo_8h_b497c989cbf1c89fba3a46e455049062}


\hypertarget{ldo_8h_3fbde7f289e6bf661575e9b802da9e78}{
\index{ldo.h@{ldo.h}!restorestack@{restorestack}}
\index{restorestack@{restorestack}!ldo.h@{ldo.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define restorestack({\bf L}, \/  n)~(({\bf TValue} $\ast$)((char $\ast$){\bf L} $\rightarrow$ stack + (n)))}}
\label{ldo_8h_3fbde7f289e6bf661575e9b802da9e78}


\hypertarget{ldo_8h_401e89c5a5f2b1dd29b87edeb5367773}{
\index{ldo.h@{ldo.h}!saveci@{saveci}}
\index{saveci@{saveci}!ldo.h@{ldo.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define saveci({\bf L}, \/  p)~((char $\ast$)(p) - (char $\ast$){\bf L} $\rightarrow$ base\_\-ci)}}
\label{ldo_8h_401e89c5a5f2b1dd29b87edeb5367773}


\hypertarget{ldo_8h_3534573bbeec89c6dbdb3eae5a54f9b9}{
\index{ldo.h@{ldo.h}!savestack@{savestack}}
\index{savestack@{savestack}!ldo.h@{ldo.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define savestack({\bf L}, \/  p)~((char $\ast$)(p) - (char $\ast$){\bf L} $\rightarrow$ stack)}}
\label{ldo_8h_3534573bbeec89c6dbdb3eae5a54f9b9}




\subsection{Typedef Documentation}
\hypertarget{ldo_8h_ae5ec0aea78f2b0b2cf7ec8fa6498b36}{
\index{ldo.h@{ldo.h}!Pfunc@{Pfunc}}
\index{Pfunc@{Pfunc}!ldo.h@{ldo.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}typedef void($\ast$ {\bf Pfunc})({\bf lua\_\-State} $\ast${\bf L}, void $\ast$ud)}}
\label{ldo_8h_ae5ec0aea78f2b0b2cf7ec8fa6498b36}




\subsection{Function Documentation}
\hypertarget{ldo_8h_4797364de1dd297aac52f9c10565523f}{
\index{ldo.h@{ldo.h}!luaD\_\-call@{luaD\_\-call}}
\index{luaD\_\-call@{luaD\_\-call}!ldo.h@{ldo.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUAI\_\-FUNC void luaD\_\-call ({\bf lua\_\-State} $\ast$ {\em L}, \/  {\bf StkId} {\em func}, \/  int {\em nResults})}}
\label{ldo_8h_4797364de1dd297aac52f9c10565523f}


\hypertarget{ldo_8h_4c0f7c1cdee0c8063a85fd206ca64eeb}{
\index{ldo.h@{ldo.h}!luaD\_\-callhook@{luaD\_\-callhook}}
\index{luaD\_\-callhook@{luaD\_\-callhook}!ldo.h@{ldo.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUAI\_\-FUNC void luaD\_\-callhook ({\bf lua\_\-State} $\ast$ {\em L}, \/  int {\em event}, \/  int {\em line})}}
\label{ldo_8h_4c0f7c1cdee0c8063a85fd206ca64eeb}


\hypertarget{ldo_8h_b83418a7edbfafe87886f156aa6a9988}{
\index{ldo.h@{ldo.h}!luaD\_\-growstack@{luaD\_\-growstack}}
\index{luaD\_\-growstack@{luaD\_\-growstack}!ldo.h@{ldo.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUAI\_\-FUNC void luaD\_\-growstack ({\bf lua\_\-State} $\ast$ {\em L}, \/  int {\em n})}}
\label{ldo_8h_b83418a7edbfafe87886f156aa6a9988}


\hypertarget{ldo_8h_d1087faa52e2bb98c00806ea1ac198a6}{
\index{ldo.h@{ldo.h}!luaD\_\-pcall@{luaD\_\-pcall}}
\index{luaD\_\-pcall@{luaD\_\-pcall}!ldo.h@{ldo.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUAI\_\-FUNC int luaD\_\-pcall ({\bf lua\_\-State} $\ast$ {\em L}, \/  {\bf Pfunc} {\em func}, \/  void $\ast$ {\em u}, \/  ptrdiff\_\-t {\em oldtop}, \/  ptrdiff\_\-t {\em ef})}}
\label{ldo_8h_d1087faa52e2bb98c00806ea1ac198a6}


\hypertarget{ldo_8h_6a05007b2d1b5768b5edf8509d4a952a}{
\index{ldo.h@{ldo.h}!luaD\_\-poscall@{luaD\_\-poscall}}
\index{luaD\_\-poscall@{luaD\_\-poscall}!ldo.h@{ldo.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUAI\_\-FUNC int luaD\_\-poscall ({\bf lua\_\-State} $\ast$ {\em L}, \/  {\bf StkId} {\em firstResult})}}
\label{ldo_8h_6a05007b2d1b5768b5edf8509d4a952a}


\hypertarget{ldo_8h_f2326bf8464de1e4ce3c5f7aef2ed5d4}{
\index{ldo.h@{ldo.h}!luaD\_\-precall@{luaD\_\-precall}}
\index{luaD\_\-precall@{luaD\_\-precall}!ldo.h@{ldo.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUAI\_\-FUNC int luaD\_\-precall ({\bf lua\_\-State} $\ast$ {\em L}, \/  {\bf StkId} {\em func}, \/  int {\em nresults})}}
\label{ldo_8h_f2326bf8464de1e4ce3c5f7aef2ed5d4}


\hypertarget{ldo_8h_e036ec2259d01bf86ef09e5f7d7137c7}{
\index{ldo.h@{ldo.h}!luaD\_\-protectedparser@{luaD\_\-protectedparser}}
\index{luaD\_\-protectedparser@{luaD\_\-protectedparser}!ldo.h@{ldo.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUAI\_\-FUNC int luaD\_\-protectedparser ({\bf lua\_\-State} $\ast$ {\em L}, \/  {\bf ZIO} $\ast$ {\em z}, \/  const char $\ast$ {\em name})}}
\label{ldo_8h_e036ec2259d01bf86ef09e5f7d7137c7}


\hypertarget{ldo_8h_73f5a10f0554f95bde20c7b9ace4397a}{
\index{ldo.h@{ldo.h}!luaD\_\-rawrunprotected@{luaD\_\-rawrunprotected}}
\index{luaD\_\-rawrunprotected@{luaD\_\-rawrunprotected}!ldo.h@{ldo.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUAI\_\-FUNC int luaD\_\-rawrunprotected ({\bf lua\_\-State} $\ast$ {\em L}, \/  {\bf Pfunc} {\em f}, \/  void $\ast$ {\em ud})}}
\label{ldo_8h_73f5a10f0554f95bde20c7b9ace4397a}


\hypertarget{ldo_8h_4ff32c55282c0d22951b5b02bb247591}{
\index{ldo.h@{ldo.h}!luaD\_\-reallocCI@{luaD\_\-reallocCI}}
\index{luaD\_\-reallocCI@{luaD\_\-reallocCI}!ldo.h@{ldo.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUAI\_\-FUNC void luaD\_\-reallocCI ({\bf lua\_\-State} $\ast$ {\em L}, \/  int {\em newsize})}}
\label{ldo_8h_4ff32c55282c0d22951b5b02bb247591}


\hypertarget{ldo_8h_288c8536559791569d9ed49b16c6e99a}{
\index{ldo.h@{ldo.h}!luaD\_\-reallocstack@{luaD\_\-reallocstack}}
\index{luaD\_\-reallocstack@{luaD\_\-reallocstack}!ldo.h@{ldo.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUAI\_\-FUNC void luaD\_\-reallocstack ({\bf lua\_\-State} $\ast$ {\em L}, \/  int {\em newsize})}}
\label{ldo_8h_288c8536559791569d9ed49b16c6e99a}


\hypertarget{ldo_8h_1cb94c83c7ff13f34638523d7500a0bf}{
\index{ldo.h@{ldo.h}!luaD\_\-seterrorobj@{luaD\_\-seterrorobj}}
\index{luaD\_\-seterrorobj@{luaD\_\-seterrorobj}!ldo.h@{ldo.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUAI\_\-FUNC void luaD\_\-seterrorobj ({\bf lua\_\-State} $\ast$ {\em L}, \/  int {\em errcode}, \/  {\bf StkId} {\em oldtop})}}
\label{ldo_8h_1cb94c83c7ff13f34638523d7500a0bf}


\hypertarget{ldo_8h_01801cbacc19b0af9bbdb16d796bc08f}{
\index{ldo.h@{ldo.h}!luaD\_\-throw@{luaD\_\-throw}}
\index{luaD\_\-throw@{luaD\_\-throw}!ldo.h@{ldo.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUAI\_\-FUNC void luaD\_\-throw ({\bf lua\_\-State} $\ast$ {\em L}, \/  int {\em errcode})}}
\label{ldo_8h_01801cbacc19b0af9bbdb16d796bc08f}


