Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
llimits.h File Reference
#include <limits.h>
#include <stddef.h>
#include "lua.h"

Go to the source code of this file.

Data Structures

union  luai_Cast
 

Macros

#define MAX_SIZET   ((size_t)(~(size_t)0)-2)
 
#define MAX_LUMEM   ((lu_mem)(~(lu_mem)0)-2)
 
#define MAX_LMEM   ((l_mem) ((MAX_LUMEM >> 1) - 2))
 
#define MAX_INT   (INT_MAX-2) /* maximum value of an int (-2 for safety) */
 
#define IntPoint(p)   ((unsigned int)(lu_mem)(p))
 
#define LUAI_USER_ALIGNMENT_T   union { double u; void *s; long l; }
 
#define lua_assert(c)   ((void)0)
 
#define check_exp(c, e)   (e)
 
#define lua_longassert(c)   ((void)0)
 
#define luai_apicheck(L, e)   lua_assert(e)
 
#define api_check(l, e, msg)   luai_apicheck(l,(e) && msg)
 
#define UNUSED(x)   ((void)(x)) /* to avoid warnings */
 
#define cast(t, exp)   ((t)(exp))
 
#define cast_byte(i)   cast(lu_byte, (i))
 
#define cast_num(i)   cast(lua_Number, (i))
 
#define cast_int(i)   cast(int, (i))
 
#define cast_uchar(i)   cast(unsigned char, (i))
 
#define l_noret   void
 
#define LUAI_MAXCCALLS   200
 
#define MAXUPVAL   UCHAR_MAX
 
#define MAXSTACK   250
 
#define MINSTRTABSIZE   32
 
#define LUA_MINBUFFER   32
 
#define lua_lock(L)   ((void) 0)
 
#define lua_unlock(L)   ((void) 0)
 
#define luai_threadyield(L)   {lua_unlock(L); lua_lock(L);}
 
#define luai_userstateopen(L)   ((void)L)
 
#define luai_userstateclose(L)   ((void)L)
 
#define luai_userstatethread(L, L1)   ((void)L)
 
#define luai_userstatefree(L, L1)   ((void)L)
 
#define luai_userstateresume(L, n)   ((void)L)
 
#define luai_userstateyield(L, n)   ((void)L)
 
#define LUAI_EXTRAIEEE    static const union luai_Cast ieeeendian = {-(33.0 + 6755399441055744.0)};
 
#define LUA_IEEEENDIANLOC   (ieeeendian.l_p[1] == 33)
 
#define lua_number2int32(i, n, t)
 
#define luai_hashnum(i, n)
 
#define lua_number2int(i, n)   lua_number2int32(i, n, int)
 
#define lua_number2unsigned(i, n)   lua_number2int32(i, n, lua_Unsigned)
 
#define lua_number2integer(i, n)   ((i)=(lua_Integer)(n))
 
#define lua_unsigned2number(u)    (((u) <= (lua_Unsigned)INT_MAX) ? (lua_Number)(int)(u) : (lua_Number)(u))
 
#define condmovestack(L)   ((void)0)
 
#define condchangemem(L)   condmovestack(L)
 

Typedefs

typedef unsigned LUA_INT32 lu_int32
 
typedef LUAI_UMEM lu_mem
 
typedef LUAI_MEM l_mem
 
typedef unsigned char lu_byte
 
typedef LUAI_USER_ALIGNMENT_T L_Umaxalign
 
typedef LUAI_UACNUMBER l_uacNumber
 
typedef lu_int32 Instruction
 

Macro Definition Documentation

◆ api_check

#define api_check ( l,
e,
msg )   luai_apicheck(l,(e) && msg)

Definition at line 85 of file lua-5.2.4/src/llimits.h.

◆ cast

#define cast ( t,
exp )   ((t)(exp))

Definition at line 93 of file lua-5.2.4/src/llimits.h.

◆ cast_byte

#define cast_byte ( i)    cast(lu_byte, (i))

Definition at line 95 of file lua-5.2.4/src/llimits.h.

◆ cast_int

#define cast_int ( i)    cast(int, (i))

Definition at line 97 of file lua-5.2.4/src/llimits.h.

◆ cast_num

#define cast_num ( i)    cast(lua_Number, (i))

Definition at line 96 of file lua-5.2.4/src/llimits.h.

◆ cast_uchar

#define cast_uchar ( i)    cast(unsigned char, (i))

◆ check_exp

#define check_exp ( c,
e )   (e)

Definition at line 67 of file lua-5.2.4/src/llimits.h.

◆ condchangemem

#define condchangemem ( L)    condmovestack(L)

Definition at line 303 of file lua-5.2.4/src/llimits.h.

◆ condmovestack

#define condmovestack ( L)    ((void)0)

Definition at line 296 of file lua-5.2.4/src/llimits.h.

Referenced by luaD_shrinkstack().

◆ IntPoint

#define IntPoint ( p)    ((unsigned int)(lu_mem)(p))

Definition at line 44 of file lua-5.2.4/src/llimits.h.

◆ l_noret

#define l_noret   void

Definition at line 109 of file lua-5.2.4/src/llimits.h.

◆ lua_assert

#define lua_assert ( c)    ((void)0)

Definition at line 66 of file lua-5.2.4/src/llimits.h.

◆ LUA_IEEEENDIANLOC

#define LUA_IEEEENDIANLOC   (ieeeendian.l_p[1] == 33)

Definition at line 221 of file lua-5.2.4/src/llimits.h.

◆ lua_lock

#define lua_lock ( L)    ((void) 0)

Definition at line 155 of file lua-5.2.4/src/llimits.h.

◆ lua_longassert

#define lua_longassert ( c)    ((void)0)

Definition at line 68 of file lua-5.2.4/src/llimits.h.

◆ LUA_MINBUFFER

#define LUA_MINBUFFER   32

Definition at line 150 of file lua-5.2.4/src/llimits.h.

◆ lua_number2int

#define lua_number2int ( i,
n )   lua_number2int32(i, n, int)

Definition at line 236 of file lua-5.2.4/src/llimits.h.

◆ lua_number2int32

#define lua_number2int32 ( i,
n,
t )
Value:
{ LUAI_EXTRAIEEE \
volatile union luai_Cast u; u.l_d = (n) + 6755399441055744.0; \
(i) = (t)u.l_p[LUA_IEEEENDIANLOC]; }
#define LUA_IEEEENDIANLOC

Definition at line 227 of file lua-5.2.4/src/llimits.h.

227#define lua_number2int32(i,n,t) \
228 { LUAI_EXTRAIEEE \
229 volatile union luai_Cast u; u.l_d = (n) + 6755399441055744.0; \
230 (i) = (t)u.l_p[LUA_IEEEENDIANLOC]; }

◆ lua_number2integer

#define lua_number2integer ( i,
n )   ((i)=(lua_Integer)(n))

Definition at line 254 of file lua-5.2.4/src/llimits.h.

◆ lua_number2unsigned

#define lua_number2unsigned ( i,
n )   lua_number2int32(i, n, lua_Unsigned)

Definition at line 237 of file lua-5.2.4/src/llimits.h.

Referenced by lua_tounsignedx().

◆ lua_unlock

#define lua_unlock ( L)    ((void) 0)

Definition at line 156 of file lua-5.2.4/src/llimits.h.

◆ lua_unsigned2number

#define lua_unsigned2number ( u)     (((u) <= (lua_Unsigned)INT_MAX) ? (lua_Number)(int)(u) : (lua_Number)(u))

Definition at line 273 of file lua-5.2.4/src/llimits.h.

273#define lua_unsigned2number(u) \
274 (((u) <= (lua_Unsigned)INT_MAX) ? (lua_Number)(int)(u) : (lua_Number)(u))

Referenced by lua_pushunsigned().

◆ luai_apicheck

#define luai_apicheck ( L,
e )   lua_assert(e)

Definition at line 80 of file lua-5.2.4/src/llimits.h.

◆ LUAI_EXTRAIEEE

#define LUAI_EXTRAIEEE    static const union luai_Cast ieeeendian = {-(33.0 + 6755399441055744.0)};

Definition at line 219 of file lua-5.2.4/src/llimits.h.

219#define LUAI_EXTRAIEEE \
220 static const union luai_Cast ieeeendian = {-(33.0 + 6755399441055744.0)};

◆ luai_hashnum

#define luai_hashnum ( i,
n )
Value:
{ volatile union luai_Cast u; u.l_d = (n) + 1.0; /* avoid -0 */ \
(i) = u.l_p[0]; (i) += u.l_p[1]; } /* add double bits for his hash */

Definition at line 232 of file lua-5.2.4/src/llimits.h.

232#define luai_hashnum(i,n) \
233 { volatile union luai_Cast u; u.l_d = (n) + 1.0; /* avoid -0 */ \
234 (i) = u.l_p[0]; (i) += u.l_p[1]; } /* add double bits for his hash */

Referenced by hashnum().

◆ LUAI_MAXCCALLS

#define LUAI_MAXCCALLS   200

Definition at line 119 of file lua-5.2.4/src/llimits.h.

◆ luai_threadyield

#define luai_threadyield ( L)    {lua_unlock(L); lua_lock(L);}

Definition at line 160 of file lua-5.2.4/src/llimits.h.

◆ LUAI_USER_ALIGNMENT_T

#define LUAI_USER_ALIGNMENT_T   union { double u; void *s; long l; }

Definition at line 50 of file lua-5.2.4/src/llimits.h.

◆ luai_userstateclose

#define luai_userstateclose ( L)    ((void)L)

Definition at line 174 of file lua-5.2.4/src/llimits.h.

◆ luai_userstatefree

#define luai_userstatefree ( L,
L1 )   ((void)L)

Definition at line 182 of file lua-5.2.4/src/llimits.h.

◆ luai_userstateopen

#define luai_userstateopen ( L)    ((void)L)

Definition at line 170 of file lua-5.2.4/src/llimits.h.

◆ luai_userstateresume

#define luai_userstateresume ( L,
n )   ((void)L)

Definition at line 186 of file lua-5.2.4/src/llimits.h.

◆ luai_userstatethread

#define luai_userstatethread ( L,
L1 )   ((void)L)

Definition at line 178 of file lua-5.2.4/src/llimits.h.

◆ luai_userstateyield

#define luai_userstateyield ( L,
n )   ((void)L)

Definition at line 190 of file lua-5.2.4/src/llimits.h.

◆ MAX_INT

#define MAX_INT   (INT_MAX-2) /* maximum value of an int (-2 for safety) */

Definition at line 37 of file lua-5.2.4/src/llimits.h.

◆ MAX_LMEM

#define MAX_LMEM   ((l_mem) ((MAX_LUMEM >> 1) - 2))

◆ MAX_LUMEM

#define MAX_LUMEM   ((lu_mem)(~(lu_mem)0)-2)

Definition at line 32 of file lua-5.2.4/src/llimits.h.

◆ MAX_SIZET

#define MAX_SIZET   ((size_t)(~(size_t)0)-2)

Definition at line 30 of file lua-5.2.4/src/llimits.h.

◆ MAXSTACK

#define MAXSTACK   250

Definition at line 138 of file lua-5.2.4/src/llimits.h.

◆ MAXUPVAL

#define MAXUPVAL   UCHAR_MAX

◆ MINSTRTABSIZE

#define MINSTRTABSIZE   32

Definition at line 144 of file lua-5.2.4/src/llimits.h.

◆ UNUSED

#define UNUSED ( x)    ((void)(x)) /* to avoid warnings */

Definition at line 89 of file lua-5.2.4/src/llimits.h.

Typedef Documentation

◆ Instruction

Definition at line 133 of file lua-5.2.4/src/llimits.h.

◆ l_mem

typedef LUAI_MEM l_mem

Definition at line 22 of file lua-5.2.4/src/llimits.h.

◆ l_uacNumber

Definition at line 57 of file lua-5.2.4/src/llimits.h.

◆ L_Umaxalign

typedef LUAI_USER_ALIGNMENT_T L_Umaxalign

Definition at line 53 of file lua-5.2.4/src/llimits.h.

◆ lu_byte

typedef unsigned char lu_byte

Definition at line 27 of file lua-5.2.4/src/llimits.h.

◆ lu_int32

typedef unsigned LUA_INT32 lu_int32

Definition at line 18 of file lua-5.2.4/src/llimits.h.

◆ lu_mem

typedef LUAI_UMEM lu_mem

Definition at line 20 of file lua-5.2.4/src/llimits.h.