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.

Macros

#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_char(i)   cast(char, (i))
 
#define cast_charp(i)   cast(char *, (i))
 
#define cast_int(i)   cast(int, (i))
 
#define cast_num(i)   cast(lua_Number, (i))
 
#define cast_sizet(i)   cast(size_t, (i))
 
#define cast_uchar(i)   cast(unsigned char, (i))
 
#define cast_uint(i)   cast(unsigned int, (i))
 
#define cast_void(i)   cast(void, (i))
 
#define cast_voidp(i)   cast(void *, (i))
 
#define check_exp(c, e)   (e)
 
#define condchangemem(L, pre, pos)   ((void)0)
 
#define condmovestack(L, pre, pos)   ((void)0)
 
#define ispow2(x)   (((x) & ((x) - 1)) == 0)
 
#define l_castS2U(i)   ((lua_Unsigned)(i))
 
#define l_castU2S(i)   ((lua_Integer)(i))
 
#define l_noret   void
 
#define likely(x)   (x)
 
#define LL(x)   (sizeof(x)/sizeof(char) - 1)
 
#define log2maxs(t)   (sizeof(t) * 8 - 2)
 
#define lua_assert(c)   ((void)0)
 
#define lua_lock(L)   ((void) 0)
 
#define lua_longassert(c)   ((void)0)
 
#define LUA_MINBUFFER   32
 
#define lua_unlock(L)   ((void) 0)
 
#define luai_apicheck(l, e)   ((void)l, lua_assert(e))
 
#define LUAI_MAXSHORTLEN   40
 
#define luai_numadd(L, a, b)   ((a)+(b))
 
#define luai_numdiv(L, a, b)   ((a)/(b))
 
#define luai_numeq(a, b)   ((a)==(b))
 
#define luai_numge(a, b)   ((a)>=(b))
 
#define luai_numgt(a, b)   ((a)>(b))
 
#define luai_numidiv(L, a, b)   ((void)L, l_floor(luai_numdiv(L,a,b)))
 
#define luai_numisnan(a)   (!luai_numeq((a), (a)))
 
#define luai_numle(a, b)   ((a)<=(b))
 
#define luai_numlt(a, b)   ((a)<(b))
 
#define luai_nummod(L, a, b, m)
 
#define luai_nummul(L, a, b)   ((a)*(b))
 
#define luai_numpow(L, a, b)   ((void)L, l_mathop(pow)(a,b))
 
#define luai_numsub(L, a, b)   ((a)-(b))
 
#define luai_numunm(L, a)   (-(a))
 
#define luai_threadyield(L)   {lua_unlock(L); lua_lock(L);}
 
#define luai_userstateclose(L)   ((void)L)
 
#define luai_userstatefree(L, L1)   ((void)L)
 
#define luai_userstateopen(L)   ((void)L)
 
#define luai_userstateresume(L, n)   ((void)L)
 
#define luai_userstatethread(L, L1)   ((void)L)
 
#define luai_userstateyield(L, n)   ((void)L)
 
#define MAX_INT   INT_MAX /* maximum value of an int */
 
#define MAX_LMEM   ((l_mem)(MAX_LUMEM >> 1))
 
#define MAX_LUMEM   ((lu_mem)(~(lu_mem)0))
 
#define MAX_SIZE
 
#define MAX_SIZET   ((size_t)(~(size_t)0))
 
#define MINSTRTABSIZE   128
 
#define point2uint(p)   ((unsigned int)((size_t)(p) & UINT_MAX))
 
#define STRCACHE_M   2
 
#define STRCACHE_N   53
 
#define unlikely(x)   (x)
 
#define UNUSED(x)   ((void)(x))
 

Typedefs

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

Macro Definition Documentation

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

Definition at line 113 of file llimits.h.

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

Definition at line 123 of file llimits.h.

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

Definition at line 130 of file llimits.h.

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

Definition at line 132 of file llimits.h.

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

Definition at line 133 of file llimits.h.

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

Definition at line 128 of file llimits.h.

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

Definition at line 127 of file llimits.h.

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

Definition at line 134 of file llimits.h.

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

Definition at line 131 of file llimits.h.

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

Definition at line 129 of file llimits.h.

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

Definition at line 125 of file llimits.h.

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

Definition at line 126 of file llimits.h.

#define check_exp (   c,
 
)    (e)

Definition at line 102 of file llimits.h.

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

Definition at line 351 of file llimits.h.

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

Definition at line 343 of file llimits.h.

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

Definition at line 66 of file llimits.h.

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

Definition at line 139 of file llimits.h.

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

Definition at line 148 of file llimits.h.

#define l_noret   void

Definition at line 178 of file llimits.h.

#define likely (   x)    (x)

Definition at line 161 of file llimits.h.

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

Definition at line 70 of file llimits.h.

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

Definition at line 60 of file llimits.h.

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

Definition at line 101 of file llimits.h.

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

Definition at line 242 of file llimits.h.

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

Definition at line 103 of file llimits.h.

#define LUA_MINBUFFER   32

Definition at line 233 of file llimits.h.

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

Definition at line 243 of file llimits.h.

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

Definition at line 110 of file llimits.h.

#define LUAI_MAXSHORTLEN   40

Definition at line 205 of file llimits.h.

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

Definition at line 323 of file llimits.h.

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

Definition at line 296 of file llimits.h.

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

Definition at line 327 of file llimits.h.

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

Definition at line 331 of file llimits.h.

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

Definition at line 330 of file llimits.h.

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

Definition at line 291 of file llimits.h.

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

Definition at line 332 of file llimits.h.

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

Definition at line 329 of file llimits.h.

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

Definition at line 328 of file llimits.h.

#define luai_nummod (   L,
  a,
  b,
 
)
Value:
{ (void)L; (m) = l_mathop(fmod)(a,b); \
if (((m) > 0) ? (b) < 0 : ((m) < 0 && (b) > 0)) (m) += (b); }
j template void())
Definition: json.hpp:3707
#define l_mathop(op)
Definition: luaconf.h:478

Definition at line 311 of file llimits.h.

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

Definition at line 325 of file llimits.h.

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

Definition at line 318 of file llimits.h.

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

Definition at line 324 of file llimits.h.

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

Definition at line 326 of file llimits.h.

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

Definition at line 251 of file llimits.h.

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

Definition at line 264 of file llimits.h.

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

Definition at line 272 of file llimits.h.

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

Definition at line 260 of file llimits.h.

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

Definition at line 276 of file llimits.h.

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

Definition at line 268 of file llimits.h.

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

Definition at line 280 of file llimits.h.

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

Definition at line 53 of file llimits.h.

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

Definition at line 50 of file llimits.h.

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

Definition at line 48 of file llimits.h.

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

Definition at line 44 of file llimits.h.

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

Definition at line 41 of file llimits.h.

#define MINSTRTABSIZE   128

Definition at line 216 of file llimits.h.

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

Definition at line 78 of file llimits.h.

#define STRCACHE_M   2

Definition at line 227 of file llimits.h.

#define STRCACHE_N   53

Definition at line 226 of file llimits.h.

#define unlikely (   x)    (x)

Definition at line 162 of file llimits.h.

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

Definition at line 118 of file llimits.h.

Typedef Documentation

Definition at line 194 of file llimits.h.

typedef long l_mem

Definition at line 31 of file llimits.h.

Definition at line 84 of file llimits.h.

Definition at line 83 of file llimits.h.

typedef unsigned long l_uint32

Definition at line 191 of file llimits.h.

typedef signed char ls_byte

Definition at line 37 of file llimits.h.

typedef unsigned char lu_byte

Definition at line 36 of file llimits.h.

typedef unsigned long lu_mem

Definition at line 30 of file llimits.h.



plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 04:02:48