diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-11-23 14:41:16 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-11-23 14:41:16 -0200 |
commit | 196c87c9cecfacf978f37de4ec69eba0a5971256 (patch) | |
tree | ce434c8a63228cf1f25adcc2210ba741ee899887 /ltests.h | |
parent | 39f26b1480502cc2f75a5af6e06e5410e06634ba (diff) | |
download | lua-196c87c9cecfacf978f37de4ec69eba0a5971256.tar.gz lua-196c87c9cecfacf978f37de4ec69eba0a5971256.tar.bz2 lua-196c87c9cecfacf978f37de4ec69eba0a5971256.zip |
no more 'stackless' implementation; 'luaV_execute' calls itself
recursively to execute function calls. 'unroll' continues all
executions suspended by an yield (through a long jump)
Diffstat (limited to 'ltests.h')
-rw-r--r-- | ltests.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltests.h,v 2.51 2017/06/27 11:35:31 roberto Exp roberto $ | 2 | ** $Id: ltests.h,v 2.52 2017/11/13 12:19:35 roberto Exp roberto $ |
3 | ** Internal Header for Debugging of the Lua Implementation | 3 | ** Internal Header for Debugging of the Lua Implementation |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -34,6 +34,10 @@ | |||
34 | #define lua_assert(c) assert(c) | 34 | #define lua_assert(c) assert(c) |
35 | 35 | ||
36 | 36 | ||
37 | /* compiled with -O0, Lua uses a lot of C stack space... */ | ||
38 | #undef LUAI_MAXCCALLS | ||
39 | #define LUAI_MAXCCALLS 300 | ||
40 | |||
37 | /* to avoid warnings, and to make sure value is really unused */ | 41 | /* to avoid warnings, and to make sure value is really unused */ |
38 | #define UNUSED(x) (x=0, (void)(x)) | 42 | #define UNUSED(x) (x=0, (void)(x)) |
39 | 43 | ||