aboutsummaryrefslogtreecommitdiff
path: root/luaconf.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--luaconf.h26
1 files changed, 9 insertions, 17 deletions
diff --git a/luaconf.h b/luaconf.h
index bd394650..0adc9c13 100644
--- a/luaconf.h
+++ b/luaconf.h
@@ -59,7 +59,7 @@
59 59
60 60
61/* 61/*
62** When Posix DLL ('LUA_USE_DLOPEN') is enabled, the Lua stand-alone 62** When POSIX DLL ('LUA_USE_DLOPEN') is enabled, the Lua stand-alone
63** application will try to dynamically link a 'readline' facility 63** application will try to dynamically link a 'readline' facility
64** for its REPL. In that case, LUA_READLINELIB is the name of the 64** for its REPL. In that case, LUA_READLINELIB is the name of the
65** library it will look for those facilities. If lua.c cannot open 65** library it will look for those facilities. If lua.c cannot open
@@ -76,7 +76,7 @@
76 76
77#if defined(LUA_USE_MACOSX) 77#if defined(LUA_USE_MACOSX)
78#define LUA_USE_POSIX 78#define LUA_USE_POSIX
79#define LUA_USE_DLOPEN /* MacOS does not need -ldl */ 79#define LUA_USE_DLOPEN /* macOS does not need -ldl */
80#define LUA_READLINELIB "libedit.dylib" 80#define LUA_READLINELIB "libedit.dylib"
81#endif 81#endif
82 82
@@ -88,7 +88,7 @@
88 88
89 89
90#if defined(LUA_USE_C89) && defined(LUA_USE_POSIX) 90#if defined(LUA_USE_C89) && defined(LUA_USE_POSIX)
91#error "Posix is not compatible with C89" 91#error "POSIX is not compatible with C89"
92#endif 92#endif
93 93
94 94
@@ -356,6 +356,12 @@
356*/ 356*/
357 357
358/* 358/*
359@@ LUA_COMPAT_GLOBAL avoids 'global' being a reserved word
360*/
361#define LUA_COMPAT_GLOBAL
362
363
364/*
359@@ LUA_COMPAT_5_3 controls other macros for compatibility with Lua 5.3. 365@@ LUA_COMPAT_5_3 controls other macros for compatibility with Lua 5.3.
360** You can define it to get all options, or change specific options 366** You can define it to get all options, or change specific options
361** to fit your specific needs. 367** to fit your specific needs.
@@ -758,20 +764,6 @@
758*/ 764*/
759 765
760/* 766/*
761@@ LUAI_MAXSTACK limits the size of the Lua stack.
762** CHANGE it if you need a different limit. This limit is arbitrary;
763** its only purpose is to stop Lua from consuming unlimited stack
764** space and to reserve some numbers for pseudo-indices.
765** (It must fit into max(int)/2.)
766*/
767#if 1000000 < (INT_MAX / 2)
768#define LUAI_MAXSTACK 1000000
769#else
770#define LUAI_MAXSTACK (INT_MAX / 2u)
771#endif
772
773
774/*
775@@ LUA_EXTRASPACE defines the size of a raw memory area associated with 767@@ LUA_EXTRASPACE defines the size of a raw memory area associated with
776** a Lua state with very fast access. 768** a Lua state with very fast access.
777** CHANGE it if you need a different size. 769** CHANGE it if you need a different size.