Defines | Typedefs

lua/llimits.h File Reference

#include <limits.h>
#include <stddef.h>
#include "lua.h"
#include <math.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.

Defines

#define MAX_SIZET   ((size_t)(~(size_t)0)-2)
#define MAX_LUMEM   ((lu_mem)(~(lu_mem)0)-2)
#define MAX_INT   (INT_MAX-2)
#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))
#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 lua_number2int(i, n)   ((i)=(int)(n))
#define lua_number2integer(i, n)   ((i)=(lua_Integer)(n))
#define SUPUNSIGNED   ((lua_Number)(~(lua_Unsigned)0) + 1)
#define lua_number2unsigned(i, n)   ((i)=(lua_Unsigned)((n) - floor((n)/SUPUNSIGNED)*SUPUNSIGNED))
#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

Define Documentation

#define api_check (   l,
  e,
  msg 
)    luai_apicheck(l,(e) && msg)
#define cast (   t,
  exp 
)    ((t)(exp))
#define cast_byte (   i  )     cast(lu_byte, (i))
#define cast_int (   i  )     cast(int, (i))
#define cast_num (   i  )     cast(lua_Number, (i))
#define cast_uchar (   i  )     cast(unsigned char, (i))

Definition at line 96 of file llimits.h.

Referenced by lua_strx2number(), luaO_str2d(), luaZ_fill(), and readhexa().

#define check_exp (   c,
  e 
)    (e)

Definition at line 65 of file llimits.h.

Referenced by luaK_indexed(), and upvalname().

#define condchangemem (   L  )     condmovestack(L)

Definition at line 296 of file llimits.h.

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

Definition at line 289 of file llimits.h.

Referenced by luaD_shrinkstack().

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

Definition at line 42 of file llimits.h.

#define l_noret   void

Definition at line 107 of file llimits.h.

#define lua_assert (   c  )     ((void)0)
#define lua_lock (   L  )     ((void) 0)
#define lua_longassert (   c  )     ((void)0)

Definition at line 66 of file llimits.h.

#define LUA_MINBUFFER   32

Definition at line 148 of file llimits.h.

Referenced by luaX_setinput(), and luaZ_openspace().

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

Definition at line 243 of file llimits.h.

Referenced by addk(), arrayindex(), and luaH_get().

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

Definition at line 247 of file llimits.h.

Referenced by lua_tointegerx().

#define lua_number2unsigned (   i,
  n 
)    ((i)=(lua_Unsigned)((n) - floor((n)/SUPUNSIGNED)*SUPUNSIGNED))

Definition at line 255 of file llimits.h.

Referenced by lua_tounsignedx().

#define lua_unlock (   L  )     ((void) 0)
#define lua_unsigned2number (   u  )     (((u) <= (lua_Unsigned)INT_MAX) ? (lua_Number)(int)(u) : (lua_Number)(u))

Definition at line 266 of file llimits.h.

Referenced by lua_pushunsigned().

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

Definition at line 78 of file llimits.h.

#define LUAI_MAXCCALLS   200

Definition at line 117 of file llimits.h.

Referenced by assignment(), enterlevel(), luaD_call(), and resume().

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

Definition at line 158 of file llimits.h.

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

Definition at line 48 of file llimits.h.

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

Definition at line 172 of file llimits.h.

Referenced by lua_close().

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

Definition at line 180 of file llimits.h.

Referenced by luaE_freethread().

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

Definition at line 168 of file llimits.h.

Referenced by lua_newstate().

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

Definition at line 184 of file llimits.h.

Referenced by lua_resume().

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

Definition at line 176 of file llimits.h.

Referenced by lua_newthread().

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

Definition at line 188 of file llimits.h.

Referenced by lua_yieldk().

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

Definition at line 32 of file llimits.h.

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

Definition at line 30 of file llimits.h.

Referenced by luaS_newudata(), luaV_concat(), newlstr(), and save().

#define MAXSTACK   250

Definition at line 136 of file llimits.h.

Referenced by luaK_checkstack().

#define MAXUPVAL   UCHAR_MAX

Definition at line 124 of file llimits.h.

Referenced by index2addr(), lua_pushcclosure(), and newupvalue().

#define MINSTRTABSIZE   32

Definition at line 142 of file llimits.h.

Referenced by f_luaopen().

#define SUPUNSIGNED   ((lua_Number)(~(lua_Unsigned)0) + 1)

Definition at line 254 of file llimits.h.

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

Definition at line 87 of file llimits.h.

Referenced by dothecall(), f_luaopen(), lua_typename(), reader(), unroll(), and writer().


Typedef Documentation

Definition at line 131 of file llimits.h.

typedef LUAI_MEM l_mem

Definition at line 22 of file llimits.h.

typedef LUAI_UACNUMBER l_uacNumber

Definition at line 55 of file llimits.h.

typedef LUAI_USER_ALIGNMENT_T L_Umaxalign

Definition at line 51 of file llimits.h.

typedef unsigned char lu_byte

Definition at line 27 of file llimits.h.

typedef unsigned LUA_INT32 lu_int32

Definition at line 18 of file llimits.h.

typedef LUAI_UMEM lu_mem

Definition at line 20 of file llimits.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:07:13 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs