mirror of
https://github.com/lua/lua.git
synced 2024-11-27 20:23:55 +08:00
definition for 'MAX_LMEM'
This commit is contained in:
parent
e29f3a5751
commit
5adb5a4812
@ -1,5 +1,5 @@
|
||||
/*
|
||||
** $Id: llimits.h,v 1.97 2012/03/28 18:27:25 roberto Exp roberto $
|
||||
** $Id: llimits.h,v 1.98 2012/05/11 14:10:50 roberto Exp roberto $
|
||||
** Limits, basic types, and some other `installation-dependent' definitions
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
@ -31,6 +31,8 @@ typedef unsigned char lu_byte;
|
||||
|
||||
#define MAX_LUMEM ((lu_mem)(~(lu_mem)0)-2)
|
||||
|
||||
#define MAX_LMEM ((l_mem) ((MAX_LUMEM >> 1) - 2))
|
||||
|
||||
|
||||
#define MAX_INT (INT_MAX-2) /* maximum value of an int (-2 for safety) */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user