aboutsummaryrefslogtreecommitdiff
path: root/llimits.h
diff options
context:
space:
mode:
Diffstat (limited to 'llimits.h')
-rw-r--r--llimits.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/llimits.h b/llimits.h
index 3df86c9b..3db96d2c 100644
--- a/llimits.h
+++ b/llimits.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: llimits.h,v 1.138 2015/09/22 14:18:24 roberto Exp roberto $ 2** $Id: llimits.h,v 1.139 2015/10/06 14:29:49 roberto Exp roberto $
3** Limits, basic types, and some other 'installation-dependent' definitions 3** Limits, basic types, and some other 'installation-dependent' definitions
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -306,17 +306,18 @@ typedef unsigned long Instruction;
306** macro to control inclusion of some hard tests on stack reallocation 306** macro to control inclusion of some hard tests on stack reallocation
307*/ 307*/
308#if !defined(HARDSTACKTESTS) 308#if !defined(HARDSTACKTESTS)
309#define condmovestack(L) ((void)0) 309#define condmovestack(L,pre,pos) ((void)0)
310#else 310#else
311/* realloc stack keeping its size */ 311/* realloc stack keeping its size */
312#define condmovestack(L) luaD_reallocstack((L), (L)->stacksize) 312#define condmovestack(L,pre,pos) \
313 { int sz_ = (L)->stacksize; pre; luaD_reallocstack((L), sz_); pos; }
313#endif 314#endif
314 315
315#if !defined(HARDMEMTESTS) 316#if !defined(HARDMEMTESTS)
316#define condchangemem(L) condmovestack(L) 317#define condchangemem(L,pre,pos) ((void)0)
317#else 318#else
318#define condchangemem(L) \ 319#define condchangemem(L,pre,pos) \
319 ((void)(!(G(L)->gcrunning) || (luaC_fullgc(L, 0), 1))) 320 { if (G(L)->gcrunning) { pre; luaC_fullgc(L, 0); pos; } }
320#endif 321#endif
321 322
322#endif 323#endif