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.

Macros

#define MAX_SIZET   ((size_t)(~(size_t)0))
 
#define MAX_SIZE
 
#define MAX_LUMEM   ((lu_mem)(~(lu_mem)0))
 
#define MAX_LMEM   ((l_mem)(MAX_LUMEM >> 1))
 
#define MAX_INT   INT_MAX /* maximum value of an int */
 
#define log2maxs(t)   (sizeof(t) * 8 - 2)
 
#define ispow2(x)   (((x) & ((x) - 1)) == 0)
 
#define LL(x)   (sizeof(x)/sizeof(char) - 1)
 
#define point2uint(p)   ((unsigned int)((size_t)(p) & UINT_MAX))
 
#define lua_assert(c)   ((void)0)
 
#define check_exp(c, e)   (e)
 
#define lua_longassert(c)   ((void)0)
 
#define luai_apicheck(l, e)   ((void)l, lua_assert(e))
 
#define api_check(l, e, msg)   luai_apicheck(l,(e) && msg)
 
#define UNUSED(x)   ((void)(x))
 
#define cast(t, exp)   ((t)(exp))
 
#define cast_void(i)   cast(void, (i))
 
#define cast_voidp(i)   cast(void *, (i))
 
#define cast_num(i)   cast(lua_Number, (i))
 
#define cast_int(i)   cast(int, (i))
 
#define cast_uint(i)   cast(unsigned int, (i))
 
#define cast_byte(i)   cast(lu_byte, (i))
 
#define cast_uchar(i)   cast(unsigned char, (i))
 
#define cast_char(i)   cast(char, (i))
 
#define cast_charp(i)   cast(char *, (i))
 
#define cast_sizet(i)   cast(size_t, (i))
 
#define l_castS2U(i)   ((lua_Unsigned)(i))
 
#define l_castU2S(i)   ((lua_Integer)(i))
 
#define l_noret   void
 
#define LUAI_MAXSHORTLEN   40
 
#define MINSTRTABSIZE   128
 
#define STRCACHE_N   53
 
#define STRCACHE_M   2
 
#define LUA_MINBUFFER   32
 
#define LUAI_MAXCCALLS   200
 
#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_numidiv(L, a, b)   ((void)L, l_floor(luai_numdiv(L,a,b)))
 
#define luai_numdiv(L, a, b)   ((a)/(b))
 
#define luai_nummod(L, a, b, m)
 
#define luai_numpow(L, a, b)    ((void)L, (b == 2) ? (a)*(a) : l_mathop(pow)(a,b))
 
#define luai_numadd(L, a, b)   ((a)+(b))
 
#define luai_numsub(L, a, b)   ((a)-(b))
 
#define luai_nummul(L, a, b)   ((a)*(b))
 
#define luai_numunm(L, a)   (-(a))
 
#define luai_numeq(a, b)   ((a)==(b))
 
#define luai_numlt(a, b)   ((a)<(b))
 
#define luai_numle(a, b)   ((a)<=(b))
 
#define luai_numgt(a, b)   ((a)>(b))
 
#define luai_numge(a, b)   ((a)>=(b))
 
#define luai_numisnan(a)   (!luai_numeq((a), (a)))
 
#define condmovestack(L, pre, pos)   ((void)0)
 
#define condchangemem(L, pre, pos)   ((void)0)
 

Typedefs

typedef unsigned long lu_mem
 
typedef long l_mem
 
typedef unsigned char lu_byte
 
typedef signed char ls_byte
 
typedef LUAI_UACNUMBER l_uacNumber
 
typedef LUAI_UACINT l_uacInt
 
typedef unsigned long l_uint32
 
typedef l_uint32 Instruction
 

Macro Definition Documentation

◆ api_check

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

Definition at line 113 of file lua-5.4.3/src/llimits.h.

◆ cast

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

Definition at line 123 of file lua-5.4.3/src/llimits.h.

◆ cast_byte

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

Definition at line 130 of file lua-5.4.3/src/llimits.h.

◆ cast_char

#define cast_char ( i)    cast(char, (i))

Definition at line 132 of file lua-5.4.3/src/llimits.h.

Referenced by luaO_utf8esc(), and save().

◆ cast_charp

#define cast_charp ( i)    cast(char *, (i))

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

◆ cast_int

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

Definition at line 128 of file lua-5.4.3/src/llimits.h.

◆ cast_num

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

Definition at line 127 of file lua-5.4.3/src/llimits.h.

◆ cast_sizet

#define cast_sizet ( i)    cast(size_t, (i))

◆ cast_uchar

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

Definition at line 131 of file lua-5.4.3/src/llimits.h.

◆ cast_uint

#define cast_uint ( i)    cast(unsigned int, (i))

◆ cast_void

#define cast_void ( i)    cast(void, (i))

Definition at line 125 of file lua-5.4.3/src/llimits.h.

◆ cast_voidp

#define cast_voidp ( i)    cast(void *, (i))

Definition at line 126 of file lua-5.4.3/src/llimits.h.

Referenced by lua_rawgetp(), lua_rawsetp(), lua_topointer(), and luaK_intK().

◆ check_exp

#define check_exp ( c,
e )   (e)

Definition at line 102 of file lua-5.4.3/src/llimits.h.

◆ condchangemem

#define condchangemem ( L,
pre,
pos )   ((void)0)

Definition at line 347 of file lua-5.4.3/src/llimits.h.

◆ condmovestack

#define condmovestack ( L,
pre,
pos )   ((void)0)

Definition at line 339 of file lua-5.4.3/src/llimits.h.

◆ ispow2

#define ispow2 ( x)    (((x) & ((x) - 1)) == 0)

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

Referenced by ispow2realasize(), luaH_getn(), and luaH_realasize().

◆ l_castS2U

#define l_castS2U ( i)    ((lua_Unsigned)(i))

Definition at line 139 of file lua-5.4.3/src/llimits.h.

◆ l_castU2S

#define l_castU2S ( i)    ((lua_Integer)(i))

Definition at line 148 of file lua-5.4.3/src/llimits.h.

◆ l_noret

#define l_noret   void

Definition at line 162 of file lua-5.4.3/src/llimits.h.

◆ LL

#define LL ( x)    (sizeof(x)/sizeof(char) - 1)

Definition at line 70 of file lua-5.4.3/src/llimits.h.

◆ log2maxs

#define log2maxs ( t)    (sizeof(t) * 8 - 2)

Definition at line 60 of file lua-5.4.3/src/llimits.h.

Referenced by incstep().

◆ lua_assert

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

Definition at line 101 of file lua-5.4.3/src/llimits.h.

◆ lua_lock

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

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

◆ lua_longassert

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

Definition at line 103 of file lua-5.4.3/src/llimits.h.

◆ LUA_MINBUFFER

#define LUA_MINBUFFER   32

Definition at line 217 of file lua-5.4.3/src/llimits.h.

◆ lua_unlock

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

Definition at line 238 of file lua-5.4.3/src/llimits.h.

◆ luai_apicheck

#define luai_apicheck ( l,
e )   ((void)l, lua_assert(e))

Definition at line 110 of file lua-5.4.3/src/llimits.h.

◆ LUAI_MAXCCALLS

#define LUAI_MAXCCALLS   200

Definition at line 228 of file lua-5.4.3/src/llimits.h.

◆ LUAI_MAXSHORTLEN

#define LUAI_MAXSHORTLEN   40

Definition at line 189 of file lua-5.4.3/src/llimits.h.

◆ luai_numadd

#define luai_numadd ( L,
a,
b )   ((a)+(b))

Definition at line 319 of file lua-5.4.3/src/llimits.h.

◆ luai_numdiv

#define luai_numdiv ( L,
a,
b )   ((a)/(b))

Definition at line 291 of file lua-5.4.3/src/llimits.h.

◆ luai_numeq

#define luai_numeq ( a,
b )   ((a)==(b))

Definition at line 323 of file lua-5.4.3/src/llimits.h.

◆ luai_numge

#define luai_numge ( a,
b )   ((a)>=(b))

Definition at line 327 of file lua-5.4.3/src/llimits.h.

Referenced by luaV_execute().

◆ luai_numgt

#define luai_numgt ( a,
b )   ((a)>(b))

Definition at line 326 of file lua-5.4.3/src/llimits.h.

Referenced by luaV_execute().

◆ luai_numidiv

#define luai_numidiv ( L,
a,
b )   ((void)L, l_floor(luai_numdiv(L,a,b)))

Definition at line 286 of file lua-5.4.3/src/llimits.h.

◆ luai_numisnan

#define luai_numisnan ( a)    (!luai_numeq((a), (a)))

Definition at line 328 of file lua-5.4.3/src/llimits.h.

◆ luai_numle

#define luai_numle ( a,
b )   ((a)<=(b))

Definition at line 325 of file lua-5.4.3/src/llimits.h.

◆ luai_numlt

#define luai_numlt ( a,
b )   ((a)<(b))

Definition at line 324 of file lua-5.4.3/src/llimits.h.

◆ luai_nummod

#define luai_nummod ( L,
a,
b,
m )
Value:
{ (void)L; (m) = l_mathop(fmod)(a,b); \
if (((m) > 0) ? (b) < 0 : ((m) < 0 && (b) > 0)) (m) += (b); }
#define l_mathop(x)

Definition at line 306 of file lua-5.4.3/src/llimits.h.

306#define luai_nummod(L,a,b,m) \
307 { (void)L; (m) = l_mathop(fmod)(a,b); \
308 if (((m) > 0) ? (b) < 0 : ((m) < 0 && (b) > 0)) (m) += (b); }

◆ luai_nummul

#define luai_nummul ( L,
a,
b )   ((a)*(b))

Definition at line 321 of file lua-5.4.3/src/llimits.h.

◆ luai_numpow

#define luai_numpow ( L,
a,
b )    ((void)L, (b == 2) ? (a)*(a) : l_mathop(pow)(a,b))

Definition at line 313 of file lua-5.4.3/src/llimits.h.

313#define luai_numpow(L,a,b) \
314 ((void)L, (b == 2) ? (a)*(a) : l_mathop(pow)(a,b))

◆ luai_numsub

#define luai_numsub ( L,
a,
b )   ((a)-(b))

Definition at line 320 of file lua-5.4.3/src/llimits.h.

◆ luai_numunm

#define luai_numunm ( L,
a )   (-(a))

Definition at line 322 of file lua-5.4.3/src/llimits.h.

◆ luai_threadyield

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

Definition at line 246 of file lua-5.4.3/src/llimits.h.

◆ luai_userstateclose

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

Definition at line 259 of file lua-5.4.3/src/llimits.h.

◆ luai_userstatefree

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

Definition at line 267 of file lua-5.4.3/src/llimits.h.

◆ luai_userstateopen

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

Definition at line 255 of file lua-5.4.3/src/llimits.h.

◆ luai_userstateresume

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

Definition at line 271 of file lua-5.4.3/src/llimits.h.

◆ luai_userstatethread

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

Definition at line 263 of file lua-5.4.3/src/llimits.h.

◆ luai_userstateyield

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

Definition at line 275 of file lua-5.4.3/src/llimits.h.

◆ MAX_INT

#define MAX_INT   INT_MAX /* maximum value of an int */

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

◆ MAX_LMEM

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

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

◆ MAX_LUMEM

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

Definition at line 48 of file lua-5.4.3/src/llimits.h.

◆ MAX_SIZE

#define MAX_SIZE
Value:
(sizeof(size_t) < sizeof(lua_Integer) ? MAX_SIZET \
: (size_t)(LUA_MAXINTEGER))
LUA_INTEGER lua_Integer
#define MAX_SIZET

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

44#define MAX_SIZE (sizeof(size_t) < sizeof(lua_Integer) ? MAX_SIZET \
45 : (size_t)(LUA_MAXINTEGER))

◆ MAX_SIZET

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

Definition at line 41 of file lua-5.4.3/src/llimits.h.

◆ MINSTRTABSIZE

#define MINSTRTABSIZE   128

Definition at line 200 of file lua-5.4.3/src/llimits.h.

◆ point2uint

#define point2uint ( p)    ((unsigned int)((size_t)(p) & UINT_MAX))

Definition at line 78 of file lua-5.4.3/src/llimits.h.

◆ STRCACHE_M

#define STRCACHE_M   2

Definition at line 211 of file lua-5.4.3/src/llimits.h.

◆ STRCACHE_N

#define STRCACHE_N   53

Definition at line 210 of file lua-5.4.3/src/llimits.h.

◆ UNUSED

#define UNUSED ( x)    ((void)(x))

Definition at line 118 of file lua-5.4.3/src/llimits.h.

Typedef Documentation

◆ Instruction

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

◆ l_mem

typedef long l_mem

Definition at line 31 of file lua-5.4.3/src/llimits.h.

◆ l_uacInt

Definition at line 84 of file lua-5.4.3/src/llimits.h.

◆ l_uacNumber

Definition at line 83 of file lua-5.4.3/src/llimits.h.

◆ l_uint32

typedef unsigned long l_uint32

Definition at line 175 of file lua-5.4.3/src/llimits.h.

◆ ls_byte

typedef signed char ls_byte

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

◆ lu_byte

typedef unsigned char lu_byte

Definition at line 36 of file lua-5.4.3/src/llimits.h.

◆ lu_mem

typedef unsigned long lu_mem

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