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.

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 check_exp(c, e)   (lua_assert(c), (e))
#define api_check(l, e)   lua_assert(e)
#define cast_byte(i)   cast(lu_byte, (i))
#define cast_num(i)   cast(lua_Number, (i))
#define cast_int(i)   cast(int, (i))
#define MAXSTACK   250
#define condhardstacktests(x)   ((void)0)

Typedefs

typedef LUAI_UINT32 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,
 )     lua_assert(e)
#define cast_byte ( i   )     cast(lu_byte, (i))
#define cast_int ( i   )     cast(int, (i))
#define cast_num ( i   )     cast(lua_Number, (i))
#define check_exp ( c,
 )     (lua_assert(c), (e))

Definition at line 57 of file llimits.h.

#define condhardstacktests (  )     ((void)0)

Definition at line 123 of file llimits.h.

Referenced by checkstacksizes().

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

Definition at line 42 of file llimits.h.

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

Definition at line 32 of file llimits.h.

Referenced by lua_gc(), and luaC_step().

#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 93 of file llimits.h.

Referenced by luaK_checkstack(), and precheck().


Typedef Documentation

Definition at line 88 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 51 of file llimits.h.

typedef LUAI_USER_ALIGNMENT_T L_Umaxalign

Definition at line 47 of file llimits.h.

typedef unsigned char lu_byte

Definition at line 27 of file llimits.h.

typedef LUAI_UINT32 lu_int32

Definition at line 18 of file llimits.h.

typedef LUAI_UMEM lu_mem

Definition at line 20 of file llimits.h.


Generated by  doxygen 1.6.2