diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-06-20 13:43:33 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-06-20 13:43:33 -0300 |
commit | 55ac40f859ad8e28fe71a8801d49f4a4140e8aa3 (patch) | |
tree | 1a1f02de45d28c7eb8976087ade773d7937bed14 /lstate.h | |
parent | 97ef8e7bd40340d47a9789beb06f0128d7438d0a (diff) | |
download | lua-55ac40f859ad8e28fe71a8801d49f4a4140e8aa3.tar.gz lua-55ac40f859ad8e28fe71a8801d49f4a4140e8aa3.tar.bz2 lua-55ac40f859ad8e28fe71a8801d49f4a4140e8aa3.zip |
Cleaning of llimits.h
Several definitions that don't need to be "global" (that is, that
concerns only specific parts of the code) moved out of llimits.h,
to more appropriate places.
Diffstat (limited to 'lstate.h')
-rw-r--r-- | lstate.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -142,6 +142,17 @@ struct lua_longjmp; /* defined in ldo.c */ | |||
142 | #define EXTRA_STACK 5 | 142 | #define EXTRA_STACK 5 |
143 | 143 | ||
144 | 144 | ||
145 | /* | ||
146 | ** Size of cache for strings in the API. 'N' is the number of | ||
147 | ** sets (better be a prime) and "M" is the size of each set. | ||
148 | ** (M == 1 makes a direct cache.) | ||
149 | */ | ||
150 | #if !defined(STRCACHE_N) | ||
151 | #define STRCACHE_N 53 | ||
152 | #define STRCACHE_M 2 | ||
153 | #endif | ||
154 | |||
155 | |||
145 | #define BASIC_STACK_SIZE (2*LUA_MINSTACK) | 156 | #define BASIC_STACK_SIZE (2*LUA_MINSTACK) |
146 | 157 | ||
147 | #define stacksize(th) cast_int((th)->stack_last.p - (th)->stack.p) | 158 | #define stacksize(th) cast_int((th)->stack_last.p - (th)->stack.p) |