new global macro 'LUA_MAXUNSIGNED'
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
** $Id: llimits.h,v 1.112 2014/04/11 19:02:16 roberto Exp roberto $
|
||||
** $Id: llimits.h,v 1.113 2014/04/11 19:56:04 roberto Exp roberto $
|
||||
** Limits, basic types, and some other `installation-dependent' definitions
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
@@ -27,10 +27,6 @@ typedef LUAI_MEM l_mem;
|
||||
typedef unsigned char lu_byte;
|
||||
|
||||
|
||||
/* maximum value for a lua_Unsigned */
|
||||
#define MAX_UINTEGER (((lua_Unsigned)LUA_MAXINTEGER << 1) + 1u)
|
||||
|
||||
|
||||
/* maximum value for size_t */
|
||||
#define MAX_SIZET ((size_t)(~(size_t)0)-2)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user