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.
This commit is contained in:
Roberto Ierusalimschy
2025-02-18 17:02:32 -03:00
parent fa1382b5cd
commit cd38fe8cf3
2 changed files with 22 additions and 10 deletions

View File

@@ -44,6 +44,10 @@
#define LUA_RAND32
/* test stack reallocation with strict address use */
#define LUAI_STRICT_ADDRESS 1
/* memory-allocator control variables */
typedef struct Memcontrol {
int failnext;