diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-05-31 13:08:55 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-05-31 13:08:55 -0300 |
commit | bd619b931173fc35f38dfbb07746bcdc5ef11808 (patch) | |
tree | 2fdcf32609e853c0490af52a9590a40982749a8e /llimits.h | |
parent | aca84ee1a04987f7cfe8c4e4126c953351d1216f (diff) | |
download | lua-bd619b931173fc35f38dfbb07746bcdc5ef11808.tar.gz lua-bd619b931173fc35f38dfbb07746bcdc5ef11808.tar.bz2 lua-bd619b931173fc35f38dfbb07746bcdc5ef11808.zip |
new macro MAXUPVAL (maximum number of upvalues per closure)
Diffstat (limited to 'llimits.h')
-rw-r--r-- | llimits.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llimits.h,v 1.80 2010/05/07 18:44:12 roberto Exp roberto $ | 2 | ** $Id: llimits.h,v 1.81 2010/05/24 19:29:46 roberto Exp roberto $ |
3 | ** Limits, basic types, and some other `installation-dependent' definitions | 3 | ** Limits, basic types, and some other `installation-dependent' definitions |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -97,6 +97,11 @@ typedef LUAI_UACNUMBER l_uacNumber; | |||
97 | #define LUAI_MAXCCALLS 200 | 97 | #define LUAI_MAXCCALLS 200 |
98 | #endif | 98 | #endif |
99 | 99 | ||
100 | /* | ||
101 | ** maximum number of upvalues in a closure (both C and Lua). (Value | ||
102 | ** must fit in an unsigned char.) | ||
103 | */ | ||
104 | #define MAXUPVAL UCHAR_MAX | ||
100 | 105 | ||
101 | 106 | ||
102 | /* | 107 | /* |