new macro 'condmovestack' instead of 'condhardstacktests'

This commit is contained in:
Roberto Ierusalimschy
2009-06-08 16:35:59 -03:00
parent 5cdec7d124
commit 4a67e48611
4 changed files with 11 additions and 13 deletions

View File

@@ -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