diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-02-18 17:02:32 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-02-18 17:02:32 -0300 |
commit | cd38fe8cf3b0f54dcc1d4a21a7a9cb585c46a43e (patch) | |
tree | 3906d64958ec82fe82ccb1eb25fd10ea77dabf0d /ltests.h | |
parent | fa1382b5cd504bdfc5fc3f5c447ed09a4c9804fd (diff) | |
download | lua-cd38fe8cf3b0f54dcc1d4a21a7a9cb585c46a43e.tar.gz lua-cd38fe8cf3b0f54dcc1d4a21a7a9cb585c46a43e.tar.bz2 lua-cd38fe8cf3b0f54dcc1d4a21a7a9cb585c46a43e.zip |
Added macro LUAI_STRICT_ADDRESS
By default, the code assumes it is safe to use a dealocated pointer
as long as the code does not access it.
Diffstat (limited to 'ltests.h')
-rw-r--r-- | ltests.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -44,6 +44,10 @@ | |||
44 | #define LUA_RAND32 | 44 | #define LUA_RAND32 |
45 | 45 | ||
46 | 46 | ||
47 | /* test stack reallocation with strict address use */ | ||
48 | #define LUAI_STRICT_ADDRESS 1 | ||
49 | |||
50 | |||
47 | /* memory-allocator control variables */ | 51 | /* memory-allocator control variables */ |
48 | typedef struct Memcontrol { | 52 | typedef struct Memcontrol { |
49 | int failnext; | 53 | int failnext; |