aboutsummaryrefslogtreecommitdiff
path: root/ltests.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2025-02-18 17:02:32 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2025-02-18 17:02:32 -0300
commitcd38fe8cf3b0f54dcc1d4a21a7a9cb585c46a43e (patch)
tree3906d64958ec82fe82ccb1eb25fd10ea77dabf0d /ltests.h
parentfa1382b5cd504bdfc5fc3f5c447ed09a4c9804fd (diff)
downloadlua-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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ltests.h b/ltests.h
index 543b0d55..df72307a 100644
--- a/ltests.h
+++ b/ltests.h
@@ -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 */
48typedef struct Memcontrol { 52typedef struct Memcontrol {
49 int failnext; 53 int failnext;