aboutsummaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
Diffstat (limited to 'lstate.h')
-rw-r--r--lstate.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/lstate.h b/lstate.h
index 2ff0d02b..6094016d 100644
--- a/lstate.h
+++ b/lstate.h
@@ -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)