\hypertarget{llimits_8h}{
\section{llimits.h File Reference}
\label{llimits_8h}\index{llimits.h@{llimits.h}}
}
{\tt \#include $<$limits.h$>$}\par
{\tt \#include $<$stddef.h$>$}\par
{\tt \#include \char`\"{}lua.h\char`\"{}}\par
\subsection*{Defines}
\begin{CompactItemize}
\item 
\#define \hyperlink{llimits_8h_a927c7bf177c162feda3483e1e972b3a}{MAX\_\-SIZET}~((size\_\-t)($\sim$(size\_\-t)0)-2)
\item 
\#define \hyperlink{llimits_8h_5e67dd5554c315bda4b54cd5ed0e846e}{MAX\_\-LUMEM}~((\hyperlink{llimits_8h_5bad522ae691bff7310f85afccf49170}{lu\_\-mem})($\sim$(\hyperlink{llimits_8h_5bad522ae691bff7310f85afccf49170}{lu\_\-mem})0)-2)
\item 
\#define \hyperlink{llimits_8h_aa1ac5caef84256eaeb39594e58e096f}{MAX\_\-INT}~(INT\_\-MAX-2)
\item 
\#define \hyperlink{llimits_8h_8288659cbb646a713deb7a5a56c65c40}{IntPoint}(p)~((unsigned int)(\hyperlink{llimits_8h_5bad522ae691bff7310f85afccf49170}{lu\_\-mem})(p))
\item 
\#define \hyperlink{llimits_8h_5978f5fda715bd80e845df1e16ad7780}{lua\_\-assert}(c)~((void)0)
\item 
\#define \hyperlink{llimits_8h_fac1404af62451f8653440ecb6e773fc}{check\_\-exp}(c, e)~(e)
\item 
\#define \hyperlink{llimits_8h_2e63f41a5abfb21dd4394da89206b3f2}{api\_\-check}~luai\_\-apicheck
\item 
\#define \hyperlink{llimits_8h_86d500a34c624c2cae56bc25a31b12f3}{UNUSED}(x)~((void)(x))
\item 
\#define \hyperlink{llimits_8h_f17d62ec9e237a7644de6b9b34a48a34}{cast}(t, exp)~((t)(exp))
\item 
\#define \hyperlink{llimits_8h_596f5b6e992f53a5a4e5732083448dd4}{cast\_\-byte}(i)~cast(\hyperlink{llimits_8h_e1fe9ac10d9803bd1d7bdf30b18bad68}{lu\_\-byte}, (i))
\item 
\#define \hyperlink{llimits_8h_c92cecb12c5aba1164877e81e76e2cb6}{cast\_\-num}(i)~cast(\hyperlink{lua_8h_f0a6ed3b852d680769cfc410a0672172}{lua\_\-Number}, (i))
\item 
\#define \hyperlink{llimits_8h_37a9e2c4b53433d34bad0f12a1500c08}{cast\_\-int}(i)~cast(int, (i))
\item 
\#define \hyperlink{llimits_8h_acca6649d32984be8e1aa076bf42fe46}{MAXSTACK}~250
\item 
\#define \hyperlink{llimits_8h_91604f8876fd042d7b1cdbade17927e6}{MINSTRTABSIZE}~32
\item 
\#define \hyperlink{llimits_8h_a0320f75a72bf131ae24d39111ac9938}{LUA\_\-MINBUFFER}~32
\item 
\#define \hyperlink{llimits_8h_a68a48b9104aeadf4842c25c12a9b8c9}{lua\_\-lock}(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})~((void) 0)
\item 
\#define \hyperlink{llimits_8h_1781f2a7d9161848a246d475a9171875}{lua\_\-unlock}(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})~((void) 0)
\item 
\#define \hyperlink{llimits_8h_7bf655fe36dca3227f9e7e04226d3e6a}{luai\_\-threadyield}(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})~\{lua\_\-unlock(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}); lua\_\-lock(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L});\}
\item 
\#define \hyperlink{llimits_8h_db7255da0decb82ca11a64fb830a8af1}{condhardstacktests}(x)~((void)0)
\end{CompactItemize}
\subsection*{Typedefs}
\begin{CompactItemize}
\item 
typedef LUAI\_\-UINT32 \hyperlink{llimits_8h_32baa465eb99f443ffc95cdd546c98cd}{lu\_\-int32}
\item 
typedef LUAI\_\-UMEM \hyperlink{llimits_8h_5bad522ae691bff7310f85afccf49170}{lu\_\-mem}
\item 
typedef LUAI\_\-MEM \hyperlink{llimits_8h_85638ce9e30eaebe04b1c7d0a8f98377}{l\_\-mem}
\item 
typedef unsigned char \hyperlink{llimits_8h_e1fe9ac10d9803bd1d7bdf30b18bad68}{lu\_\-byte}
\item 
typedef LUAI\_\-USER\_\-ALIGNMENT\_\-T \hyperlink{llimits_8h_ec7eb7707072318be7c6894d77b0d44a}{L\_\-Umaxalign}
\item 
typedef LUAI\_\-UACNUMBER \hyperlink{llimits_8h_792eefbf119f914b73400c314411c3e2}{l\_\-uacNumber}
\item 
typedef \hyperlink{llimits_8h_32baa465eb99f443ffc95cdd546c98cd}{lu\_\-int32} \hyperlink{llimits_8h_2d9700d30c1ae59754ecf50917c04d43}{Instruction}
\end{CompactItemize}


\subsection{Define Documentation}
\hypertarget{llimits_8h_2e63f41a5abfb21dd4394da89206b3f2}{
\index{llimits.h@{llimits.h}!api\_\-check@{api\_\-check}}
\index{api\_\-check@{api\_\-check}!llimits.h@{llimits.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define api\_\-check~luai\_\-apicheck}}
\label{llimits_8h_2e63f41a5abfb21dd4394da89206b3f2}


\hypertarget{llimits_8h_f17d62ec9e237a7644de6b9b34a48a34}{
\index{llimits.h@{llimits.h}!cast@{cast}}
\index{cast@{cast}!llimits.h@{llimits.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define cast(t, \/  exp)~((t)(exp))}}
\label{llimits_8h_f17d62ec9e237a7644de6b9b34a48a34}


\hypertarget{llimits_8h_596f5b6e992f53a5a4e5732083448dd4}{
\index{llimits.h@{llimits.h}!cast\_\-byte@{cast\_\-byte}}
\index{cast\_\-byte@{cast\_\-byte}!llimits.h@{llimits.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define cast\_\-byte(i)~cast({\bf lu\_\-byte}, (i))}}
\label{llimits_8h_596f5b6e992f53a5a4e5732083448dd4}


\hypertarget{llimits_8h_37a9e2c4b53433d34bad0f12a1500c08}{
\index{llimits.h@{llimits.h}!cast\_\-int@{cast\_\-int}}
\index{cast\_\-int@{cast\_\-int}!llimits.h@{llimits.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define cast\_\-int(i)~cast(int, (i))}}
\label{llimits_8h_37a9e2c4b53433d34bad0f12a1500c08}


\hypertarget{llimits_8h_c92cecb12c5aba1164877e81e76e2cb6}{
\index{llimits.h@{llimits.h}!cast\_\-num@{cast\_\-num}}
\index{cast\_\-num@{cast\_\-num}!llimits.h@{llimits.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define cast\_\-num(i)~cast({\bf lua\_\-Number}, (i))}}
\label{llimits_8h_c92cecb12c5aba1164877e81e76e2cb6}


\hypertarget{llimits_8h_fac1404af62451f8653440ecb6e773fc}{
\index{llimits.h@{llimits.h}!check\_\-exp@{check\_\-exp}}
\index{check\_\-exp@{check\_\-exp}!llimits.h@{llimits.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define check\_\-exp(c, \/  e)~(e)}}
\label{llimits_8h_fac1404af62451f8653440ecb6e773fc}


\hypertarget{llimits_8h_db7255da0decb82ca11a64fb830a8af1}{
\index{llimits.h@{llimits.h}!condhardstacktests@{condhardstacktests}}
\index{condhardstacktests@{condhardstacktests}!llimits.h@{llimits.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define condhardstacktests(x)~((void)0)}}
\label{llimits_8h_db7255da0decb82ca11a64fb830a8af1}


\hypertarget{llimits_8h_8288659cbb646a713deb7a5a56c65c40}{
\index{llimits.h@{llimits.h}!IntPoint@{IntPoint}}
\index{IntPoint@{IntPoint}!llimits.h@{llimits.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define IntPoint(p)~((unsigned int)({\bf lu\_\-mem})(p))}}
\label{llimits_8h_8288659cbb646a713deb7a5a56c65c40}


\hypertarget{llimits_8h_5978f5fda715bd80e845df1e16ad7780}{
\index{llimits.h@{llimits.h}!lua\_\-assert@{lua\_\-assert}}
\index{lua\_\-assert@{lua\_\-assert}!llimits.h@{llimits.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define lua\_\-assert(c)~((void)0)}}
\label{llimits_8h_5978f5fda715bd80e845df1e16ad7780}


\hypertarget{llimits_8h_a68a48b9104aeadf4842c25c12a9b8c9}{
\index{llimits.h@{llimits.h}!lua\_\-lock@{lua\_\-lock}}
\index{lua\_\-lock@{lua\_\-lock}!llimits.h@{llimits.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define lua\_\-lock({\bf L})~((void) 0)}}
\label{llimits_8h_a68a48b9104aeadf4842c25c12a9b8c9}


\hypertarget{llimits_8h_a0320f75a72bf131ae24d39111ac9938}{
\index{llimits.h@{llimits.h}!LUA\_\-MINBUFFER@{LUA\_\-MINBUFFER}}
\index{LUA\_\-MINBUFFER@{LUA\_\-MINBUFFER}!llimits.h@{llimits.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define LUA\_\-MINBUFFER~32}}
\label{llimits_8h_a0320f75a72bf131ae24d39111ac9938}


\hypertarget{llimits_8h_1781f2a7d9161848a246d475a9171875}{
\index{llimits.h@{llimits.h}!lua\_\-unlock@{lua\_\-unlock}}
\index{lua\_\-unlock@{lua\_\-unlock}!llimits.h@{llimits.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define lua\_\-unlock({\bf L})~((void) 0)}}
\label{llimits_8h_1781f2a7d9161848a246d475a9171875}


\hypertarget{llimits_8h_7bf655fe36dca3227f9e7e04226d3e6a}{
\index{llimits.h@{llimits.h}!luai\_\-threadyield@{luai\_\-threadyield}}
\index{luai\_\-threadyield@{luai\_\-threadyield}!llimits.h@{llimits.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define luai\_\-threadyield({\bf L})~\{lua\_\-unlock({\bf L}); lua\_\-lock({\bf L});\}}}
\label{llimits_8h_7bf655fe36dca3227f9e7e04226d3e6a}


\hypertarget{llimits_8h_aa1ac5caef84256eaeb39594e58e096f}{
\index{llimits.h@{llimits.h}!MAX\_\-INT@{MAX\_\-INT}}
\index{MAX\_\-INT@{MAX\_\-INT}!llimits.h@{llimits.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define MAX\_\-INT~(INT\_\-MAX-2)}}
\label{llimits_8h_aa1ac5caef84256eaeb39594e58e096f}


\hypertarget{llimits_8h_5e67dd5554c315bda4b54cd5ed0e846e}{
\index{llimits.h@{llimits.h}!MAX\_\-LUMEM@{MAX\_\-LUMEM}}
\index{MAX\_\-LUMEM@{MAX\_\-LUMEM}!llimits.h@{llimits.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define MAX\_\-LUMEM~(({\bf lu\_\-mem})($\sim$({\bf lu\_\-mem})0)-2)}}
\label{llimits_8h_5e67dd5554c315bda4b54cd5ed0e846e}


\hypertarget{llimits_8h_a927c7bf177c162feda3483e1e972b3a}{
\index{llimits.h@{llimits.h}!MAX\_\-SIZET@{MAX\_\-SIZET}}
\index{MAX\_\-SIZET@{MAX\_\-SIZET}!llimits.h@{llimits.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define MAX\_\-SIZET~((size\_\-t)($\sim$(size\_\-t)0)-2)}}
\label{llimits_8h_a927c7bf177c162feda3483e1e972b3a}


\hypertarget{llimits_8h_acca6649d32984be8e1aa076bf42fe46}{
\index{llimits.h@{llimits.h}!MAXSTACK@{MAXSTACK}}
\index{MAXSTACK@{MAXSTACK}!llimits.h@{llimits.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define MAXSTACK~250}}
\label{llimits_8h_acca6649d32984be8e1aa076bf42fe46}


\hypertarget{llimits_8h_91604f8876fd042d7b1cdbade17927e6}{
\index{llimits.h@{llimits.h}!MINSTRTABSIZE@{MINSTRTABSIZE}}
\index{MINSTRTABSIZE@{MINSTRTABSIZE}!llimits.h@{llimits.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define MINSTRTABSIZE~32}}
\label{llimits_8h_91604f8876fd042d7b1cdbade17927e6}


\hypertarget{llimits_8h_86d500a34c624c2cae56bc25a31b12f3}{
\index{llimits.h@{llimits.h}!UNUSED@{UNUSED}}
\index{UNUSED@{UNUSED}!llimits.h@{llimits.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define UNUSED(x)~((void)(x))}}
\label{llimits_8h_86d500a34c624c2cae56bc25a31b12f3}




\subsection{Typedef Documentation}
\hypertarget{llimits_8h_2d9700d30c1ae59754ecf50917c04d43}{
\index{llimits.h@{llimits.h}!Instruction@{Instruction}}
\index{Instruction@{Instruction}!llimits.h@{llimits.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}typedef {\bf lu\_\-int32} {\bf Instruction}}}
\label{llimits_8h_2d9700d30c1ae59754ecf50917c04d43}


\hypertarget{llimits_8h_85638ce9e30eaebe04b1c7d0a8f98377}{
\index{llimits.h@{llimits.h}!l\_\-mem@{l\_\-mem}}
\index{l\_\-mem@{l\_\-mem}!llimits.h@{llimits.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}typedef LUAI\_\-MEM {\bf l\_\-mem}}}
\label{llimits_8h_85638ce9e30eaebe04b1c7d0a8f98377}


\hypertarget{llimits_8h_792eefbf119f914b73400c314411c3e2}{
\index{llimits.h@{llimits.h}!l\_\-uacNumber@{l\_\-uacNumber}}
\index{l\_\-uacNumber@{l\_\-uacNumber}!llimits.h@{llimits.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}typedef LUAI\_\-UACNUMBER {\bf l\_\-uacNumber}}}
\label{llimits_8h_792eefbf119f914b73400c314411c3e2}


\hypertarget{llimits_8h_ec7eb7707072318be7c6894d77b0d44a}{
\index{llimits.h@{llimits.h}!L\_\-Umaxalign@{L\_\-Umaxalign}}
\index{L\_\-Umaxalign@{L\_\-Umaxalign}!llimits.h@{llimits.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}typedef LUAI\_\-USER\_\-ALIGNMENT\_\-T {\bf L\_\-Umaxalign}}}
\label{llimits_8h_ec7eb7707072318be7c6894d77b0d44a}


\hypertarget{llimits_8h_e1fe9ac10d9803bd1d7bdf30b18bad68}{
\index{llimits.h@{llimits.h}!lu\_\-byte@{lu\_\-byte}}
\index{lu\_\-byte@{lu\_\-byte}!llimits.h@{llimits.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}typedef unsigned char {\bf lu\_\-byte}}}
\label{llimits_8h_e1fe9ac10d9803bd1d7bdf30b18bad68}


\hypertarget{llimits_8h_32baa465eb99f443ffc95cdd546c98cd}{
\index{llimits.h@{llimits.h}!lu\_\-int32@{lu\_\-int32}}
\index{lu\_\-int32@{lu\_\-int32}!llimits.h@{llimits.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}typedef LUAI\_\-UINT32 {\bf lu\_\-int32}}}
\label{llimits_8h_32baa465eb99f443ffc95cdd546c98cd}


\hypertarget{llimits_8h_5bad522ae691bff7310f85afccf49170}{
\index{llimits.h@{llimits.h}!lu\_\-mem@{lu\_\-mem}}
\index{lu\_\-mem@{lu\_\-mem}!llimits.h@{llimits.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}typedef LUAI\_\-UMEM {\bf lu\_\-mem}}}
\label{llimits_8h_5bad522ae691bff7310f85afccf49170}


