Corrections of stack addresses back to strict mode
It can be a little slower, but only for quite large stacks and moreover stack reallocation is not a common operation. With no strong contrary reason, it is better to follow the standard.
This commit is contained in:
2
ldo.c
2
ldo.c
@@ -199,7 +199,7 @@ l_noret luaD_errerr (lua_State *L) {
|
|||||||
** The following macro chooses how strict is the code.
|
** The following macro chooses how strict is the code.
|
||||||
*/
|
*/
|
||||||
#if !defined(LUAI_STRICT_ADDRESS)
|
#if !defined(LUAI_STRICT_ADDRESS)
|
||||||
#define LUAI_STRICT_ADDRESS 0
|
#define LUAI_STRICT_ADDRESS 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if LUAI_STRICT_ADDRESS
|
#if LUAI_STRICT_ADDRESS
|
||||||
|
|||||||
4
ltests.h
4
ltests.h
@@ -44,8 +44,8 @@
|
|||||||
#define LUA_RAND32
|
#define LUA_RAND32
|
||||||
|
|
||||||
|
|
||||||
/* test stack reallocation with strict address use */
|
/* test stack reallocation without strict address use */
|
||||||
#define LUAI_STRICT_ADDRESS 1
|
#define LUAI_STRICT_ADDRESS 0
|
||||||
|
|
||||||
|
|
||||||
/* memory-allocator control variables */
|
/* memory-allocator control variables */
|
||||||
|
|||||||
Reference in New Issue
Block a user