From 4a67e48611c1ffaa6d474e443c3c89849c8b6e5f Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 8 Jun 2009 16:35:59 -0300 Subject: new macro 'condmovestack' instead of 'condhardstacktests' --- llimits.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'llimits.h') diff --git a/llimits.h b/llimits.h index 06e786ab..b6ccdb28 100644 --- a/llimits.h +++ b/llimits.h @@ -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 -- cgit v1.2.3-55-g6feb