new way to control GC speed (keeping a 'debt' counter)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
** $Id: llimits.h,v 1.77 2009/12/17 12:50:20 roberto Exp roberto $
|
||||
** $Id: llimits.h,v 1.78 2010/04/19 17:40:13 roberto Exp roberto $
|
||||
** Limits, basic types, and some other `installation-dependent' definitions
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
@@ -30,6 +30,7 @@ typedef unsigned char lu_byte;
|
||||
#define MAX_SIZET ((size_t)(~(size_t)0)-2)
|
||||
|
||||
#define MAX_LUMEM ((lu_mem)(~(lu_mem)0)-2)
|
||||
#define MIN_LMEM ((l_mem)~((~(lu_mem)0)>>1))
|
||||
|
||||
|
||||
#define MAX_INT (INT_MAX-2) /* maximum value of an int (-2 for safety) */
|
||||
|
||||
Reference in New Issue
Block a user