diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-03-27 12:38:29 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-03-27 12:38:29 -0300 |
commit | ef5d171cc89b19ac1fea905b99d819b5f97cba00 (patch) | |
tree | bdc900455d00c0e8cfdcbb64993842a502fc9e21 /lfunc.c | |
parent | b0f3df16a495745cf16657a48dde6845ec85c732 (diff) | |
download | lua-ef5d171cc89b19ac1fea905b99d819b5f97cba00.tar.gz lua-ef5d171cc89b19ac1fea905b99d819b5f97cba00.tar.bz2 lua-ef5d171cc89b19ac1fea905b99d819b5f97cba00.zip |
New macro 'l_numbits'
Diffstat (limited to 'lfunc.c')
-rw-r--r-- | lfunc.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -162,13 +162,8 @@ static void prepcallclosemth (lua_State *L, StkId level, TStatus status, | |||
162 | } | 162 | } |
163 | 163 | ||
164 | 164 | ||
165 | /* | 165 | /* Maximum value for deltas in 'tbclist' */ |
166 | ** Maximum value for deltas in 'tbclist', dependent on the type | 166 | #define MAXDELTA USHRT_MAX |
167 | ** of delta. (This macro assumes that an 'L' is in scope where it | ||
168 | ** is used.) | ||
169 | */ | ||
170 | #define MAXDELTA \ | ||
171 | ((256ul << ((sizeof(L->stack.p->tbclist.delta) - 1) * 8)) - 1) | ||
172 | 167 | ||
173 | 168 | ||
174 | /* | 169 | /* |