\hypertarget{ldebug_8h}{
\section{ldebug.h File Reference}
\label{ldebug_8h}\index{ldebug.h@{ldebug.h}}
}
{\tt \#include \char`\"{}lstate.h\char`\"{}}\par
\subsection*{Defines}
\begin{CompactItemize}
\item 
\#define \hyperlink{ldebug_8h_90cad524ed41d15bada161ecd74037ad}{pcRel}(pc, p)~(cast(int, (pc) - (p) $\rightarrow$ code) - 1)
\item 
\#define \hyperlink{ldebug_8h_af173b063074236fab0f77f3b093a16c}{getline}(f, pc)~(((f) $\rightarrow$ lineinfo) ? (f) $\rightarrow$ lineinfo\mbox{[}pc\mbox{]} : 0)
\item 
\#define \hyperlink{ldebug_8h_c42e5618900e7522d70474fcfbddab58}{resethookcount}(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})~(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L} $\rightarrow$ hookcount = \hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L} $\rightarrow$ basehookcount)
\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
LUAI\_\-FUNC void \hyperlink{ldebug_8h_f3ae77496bfcfcb1c46564f3e3abd5d8}{luaG\_\-typeerror} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, const \hyperlink{structlua__TValue}{TValue} $\ast$o, const char $\ast$opname)
\item 
LUAI\_\-FUNC void \hyperlink{ldebug_8h_211d80c7ae6c7481a284ba8967a1ba92}{luaG\_\-concaterror} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, \hyperlink{structlua__TValue}{StkId} p1, \hyperlink{structlua__TValue}{StkId} p2)
\item 
LUAI\_\-FUNC void \hyperlink{ldebug_8h_25ef220fbe5ff309aa2bd09aa3e0975b}{luaG\_\-aritherror} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, const \hyperlink{structlua__TValue}{TValue} $\ast$p1, const \hyperlink{structlua__TValue}{TValue} $\ast$p2)
\item 
LUAI\_\-FUNC int \hyperlink{ldebug_8h_95505503dc1dfc1506d2f99f0a27580a}{luaG\_\-ordererror} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, const \hyperlink{structlua__TValue}{TValue} $\ast$p1, const \hyperlink{structlua__TValue}{TValue} $\ast$p2)
\item 
LUAI\_\-FUNC void \hyperlink{ldebug_8h_ece474c21dec3e6b88ad1fe8570ba7a0}{luaG\_\-runerror} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, const char $\ast$fmt,...)
\item 
LUAI\_\-FUNC void \hyperlink{ldebug_8h_033020d8d0a20b645ec945a1ab755ea3}{luaG\_\-errormsg} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})
\item 
LUAI\_\-FUNC int \hyperlink{ldebug_8h_7d65df36fe4b21a7d83053f1b5f1f653}{luaG\_\-checkcode} (const \hyperlink{structProto}{Proto} $\ast$pt)
\item 
LUAI\_\-FUNC int \hyperlink{ldebug_8h_5e67d21bc85cc7bb41bbc62271d71d23}{luaG\_\-checkopenop} (\hyperlink{llimits_8h_2d9700d30c1ae59754ecf50917c04d43}{Instruction} i)
\end{CompactItemize}


\subsection{Define Documentation}
\hypertarget{ldebug_8h_af173b063074236fab0f77f3b093a16c}{
\index{ldebug.h@{ldebug.h}!getline@{getline}}
\index{getline@{getline}!ldebug.h@{ldebug.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define getline(f, \/  pc)~(((f) $\rightarrow$ lineinfo) ? (f) $\rightarrow$ lineinfo\mbox{[}pc\mbox{]} : 0)}}
\label{ldebug_8h_af173b063074236fab0f77f3b093a16c}


\hypertarget{ldebug_8h_90cad524ed41d15bada161ecd74037ad}{
\index{ldebug.h@{ldebug.h}!pcRel@{pcRel}}
\index{pcRel@{pcRel}!ldebug.h@{ldebug.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define pcRel(pc, \/  p)~(cast(int, (pc) - (p) $\rightarrow$ code) - 1)}}
\label{ldebug_8h_90cad524ed41d15bada161ecd74037ad}


\hypertarget{ldebug_8h_c42e5618900e7522d70474fcfbddab58}{
\index{ldebug.h@{ldebug.h}!resethookcount@{resethookcount}}
\index{resethookcount@{resethookcount}!ldebug.h@{ldebug.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define resethookcount({\bf L})~({\bf L} $\rightarrow$ hookcount = {\bf L} $\rightarrow$ basehookcount)}}
\label{ldebug_8h_c42e5618900e7522d70474fcfbddab58}




\subsection{Function Documentation}
\hypertarget{ldebug_8h_25ef220fbe5ff309aa2bd09aa3e0975b}{
\index{ldebug.h@{ldebug.h}!luaG\_\-aritherror@{luaG\_\-aritherror}}
\index{luaG\_\-aritherror@{luaG\_\-aritherror}!ldebug.h@{ldebug.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUAI\_\-FUNC void luaG\_\-aritherror ({\bf lua\_\-State} $\ast$ {\em L}, \/  const {\bf TValue} $\ast$ {\em p1}, \/  const {\bf TValue} $\ast$ {\em p2})}}
\label{ldebug_8h_25ef220fbe5ff309aa2bd09aa3e0975b}


\hypertarget{ldebug_8h_7d65df36fe4b21a7d83053f1b5f1f653}{
\index{ldebug.h@{ldebug.h}!luaG\_\-checkcode@{luaG\_\-checkcode}}
\index{luaG\_\-checkcode@{luaG\_\-checkcode}!ldebug.h@{ldebug.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUAI\_\-FUNC int luaG\_\-checkcode (const {\bf Proto} $\ast$ {\em pt})}}
\label{ldebug_8h_7d65df36fe4b21a7d83053f1b5f1f653}


\hypertarget{ldebug_8h_5e67d21bc85cc7bb41bbc62271d71d23}{
\index{ldebug.h@{ldebug.h}!luaG\_\-checkopenop@{luaG\_\-checkopenop}}
\index{luaG\_\-checkopenop@{luaG\_\-checkopenop}!ldebug.h@{ldebug.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUAI\_\-FUNC int luaG\_\-checkopenop ({\bf Instruction} {\em i})}}
\label{ldebug_8h_5e67d21bc85cc7bb41bbc62271d71d23}


\hypertarget{ldebug_8h_211d80c7ae6c7481a284ba8967a1ba92}{
\index{ldebug.h@{ldebug.h}!luaG\_\-concaterror@{luaG\_\-concaterror}}
\index{luaG\_\-concaterror@{luaG\_\-concaterror}!ldebug.h@{ldebug.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUAI\_\-FUNC void luaG\_\-concaterror ({\bf lua\_\-State} $\ast$ {\em L}, \/  {\bf StkId} {\em p1}, \/  {\bf StkId} {\em p2})}}
\label{ldebug_8h_211d80c7ae6c7481a284ba8967a1ba92}


\hypertarget{ldebug_8h_033020d8d0a20b645ec945a1ab755ea3}{
\index{ldebug.h@{ldebug.h}!luaG\_\-errormsg@{luaG\_\-errormsg}}
\index{luaG\_\-errormsg@{luaG\_\-errormsg}!ldebug.h@{ldebug.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUAI\_\-FUNC void luaG\_\-errormsg ({\bf lua\_\-State} $\ast$ {\em L})}}
\label{ldebug_8h_033020d8d0a20b645ec945a1ab755ea3}


\hypertarget{ldebug_8h_95505503dc1dfc1506d2f99f0a27580a}{
\index{ldebug.h@{ldebug.h}!luaG\_\-ordererror@{luaG\_\-ordererror}}
\index{luaG\_\-ordererror@{luaG\_\-ordererror}!ldebug.h@{ldebug.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUAI\_\-FUNC int luaG\_\-ordererror ({\bf lua\_\-State} $\ast$ {\em L}, \/  const {\bf TValue} $\ast$ {\em p1}, \/  const {\bf TValue} $\ast$ {\em p2})}}
\label{ldebug_8h_95505503dc1dfc1506d2f99f0a27580a}


\hypertarget{ldebug_8h_ece474c21dec3e6b88ad1fe8570ba7a0}{
\index{ldebug.h@{ldebug.h}!luaG\_\-runerror@{luaG\_\-runerror}}
\index{luaG\_\-runerror@{luaG\_\-runerror}!ldebug.h@{ldebug.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUAI\_\-FUNC void luaG\_\-runerror ({\bf lua\_\-State} $\ast$ {\em L}, \/  const char $\ast$ {\em fmt}, \/   {\em ...})}}
\label{ldebug_8h_ece474c21dec3e6b88ad1fe8570ba7a0}


\hypertarget{ldebug_8h_f3ae77496bfcfcb1c46564f3e3abd5d8}{
\index{ldebug.h@{ldebug.h}!luaG\_\-typeerror@{luaG\_\-typeerror}}
\index{luaG\_\-typeerror@{luaG\_\-typeerror}!ldebug.h@{ldebug.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUAI\_\-FUNC void luaG\_\-typeerror ({\bf lua\_\-State} $\ast$ {\em L}, \/  const {\bf TValue} $\ast$ {\em o}, \/  const char $\ast$ {\em opname})}}
\label{ldebug_8h_f3ae77496bfcfcb1c46564f3e3abd5d8}


