RetroArch
Classes | Macros | Typedefs
llimits.h File Reference
#include <limits.h>
#include <stddef.h>
#include "lua.h"
Include dependency graph for llimits.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

union  L_Umaxalign
 

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 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)   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_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_castS2U(i)   ((lua_Unsigned)(i))
 
#define l_castU2S(i)   ((lua_Integer)(i))
 
#define l_noret   void
 
#define LUAI_MAXCCALLS   200
 
#define LUAI_MAXSHORTLEN   40
 
#define MINSTRTABSIZE   128
 
#define STRCACHE_N   53
 
#define STRCACHE_M   2
 
#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_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)   { (m) = l_mathop(fmod)(a,b); if ((m)*(b) < 0) (m) += (b); }
 
#define luai_numpow(L, a, b)   ((void)L, 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_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 LUAI_UACNUMBER l_uacNumber
 
typedef LUAI_UACINT l_uacInt
 
typedef unsigned long Instruction
 

Macro Definition Documentation

◆ api_check

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

◆ cast

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

◆ cast_byte

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

◆ cast_int

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

◆ cast_num

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

◆ cast_uchar

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

◆ cast_void

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

◆ check_exp

#define check_exp (   c,
 
)    (e)

◆ condchangemem

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

◆ condmovestack

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

◆ l_castS2U

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

◆ l_castU2S

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

◆ l_noret

#define l_noret   void

◆ lua_assert

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

◆ lua_lock

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

◆ lua_longassert

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

◆ LUA_MINBUFFER

#define LUA_MINBUFFER   32

◆ lua_unlock

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

◆ luai_apicheck

#define luai_apicheck (   l,
 
)    lua_assert(e)

◆ LUAI_MAXCCALLS

#define LUAI_MAXCCALLS   200

◆ LUAI_MAXSHORTLEN

#define LUAI_MAXSHORTLEN   40

◆ luai_numadd

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

◆ luai_numdiv

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

◆ luai_numeq

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

◆ luai_numidiv

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

◆ luai_numisnan

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

◆ luai_numle

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

◆ luai_numlt

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

◆ luai_nummod

#define luai_nummod (   L,
  a,
  b,
  m 
)    { (m) = l_mathop(fmod)(a,b); if ((m)*(b) < 0) (m) += (b); }

◆ luai_nummul

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

◆ luai_numpow

#define luai_numpow (   L,
  a,
  b 
)    ((void)L, l_mathop(pow)(a,b))

◆ luai_numsub

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

◆ luai_numunm

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

◆ luai_threadyield

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

◆ luai_userstateclose

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

◆ luai_userstatefree

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

◆ luai_userstateopen

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

◆ luai_userstateresume

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

◆ luai_userstatethread

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

◆ luai_userstateyield

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

◆ MAX_INT

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

◆ MAX_LMEM

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

◆ MAX_LUMEM

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

◆ MAX_SIZE

#define MAX_SIZE
Value:
(sizeof(size_t) < sizeof(lua_Integer) ? MAX_SIZET \
: (size_t)(LUA_MAXINTEGER))
LUA_INTEGER lua_Integer
Definition: lua.h:93
#define MAX_SIZET
Definition: llimits.h:39

◆ MAX_SIZET

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

◆ MINSTRTABSIZE

#define MINSTRTABSIZE   128

◆ point2uint

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

◆ STRCACHE_M

#define STRCACHE_M   2

◆ STRCACHE_N

#define STRCACHE_N   53

◆ UNUSED

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

Typedef Documentation

◆ Instruction

typedef unsigned long Instruction

◆ l_mem

typedef long l_mem

◆ l_uacInt

◆ l_uacNumber

◆ lu_byte

typedef unsigned char lu_byte

◆ lu_mem

typedef unsigned long lu_mem