new macro 'condmovestack' instead of 'condhardstacktests'
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
** $Id: llimits.h,v 1.69 2005/12/27 17:12:00 roberto Exp roberto $
|
||||
** $Id: llimits.h,v 1.70 2006/09/11 14:07:24 roberto Exp roberto $
|
||||
** Limits, basic types, and some other `installation-dependent' definitions
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
@@ -120,9 +120,10 @@ typedef lu_int32 Instruction;
|
||||
** macro to control inclusion of some hard tests on stack reallocation
|
||||
*/
|
||||
#ifndef HARDSTACKTESTS
|
||||
#define condhardstacktests(x) ((void)0)
|
||||
#define condmovestack(L) ((void)0)
|
||||
#else
|
||||
#define condhardstacktests(x) x
|
||||
#define condmovestack(L) /* realloc stack keeping its size */ \
|
||||
luaD_reallocstack((L), (L)->stacksize - EXTRA_STACK - 1)
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user