mirror of
https://github.com/lua/lua
synced 2026-09-26 16:17:11 +03:00
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.
This commit is contained in:
parent
97ef8e7bd4
commit
55ac40f859
19 changed files with 159 additions and 165 deletions
11
lstate.h
11
lstate.h
|
|
@ -142,6 +142,17 @@ struct lua_longjmp; /* defined in ldo.c */
|
|||
#define EXTRA_STACK 5
|
||||
|
||||
|
||||
/*
|
||||
** Size of cache for strings in the API. 'N' is the number of
|
||||
** sets (better be a prime) and "M" is the size of each set.
|
||||
** (M == 1 makes a direct cache.)
|
||||
*/
|
||||
#if !defined(STRCACHE_N)
|
||||
#define STRCACHE_N 53
|
||||
#define STRCACHE_M 2
|
||||
#endif
|
||||
|
||||
|
||||
#define BASIC_STACK_SIZE (2*LUA_MINSTACK)
|
||||
|
||||
#define stacksize(th) cast_int((th)->stack_last.p - (th)->stack.p)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue