diff options
Diffstat (limited to 'llimits.h')
-rw-r--r-- | llimits.h | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llimits.h,v 1.94 2011/11/29 15:39:48 roberto Exp roberto $ | 2 | ** $Id: llimits.h,v 1.95 2011/12/06 16:58:36 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 | */ |
@@ -125,6 +125,15 @@ typedef LUAI_UACNUMBER l_uacNumber; | |||
125 | 125 | ||
126 | 126 | ||
127 | /* | 127 | /* |
128 | ** maximum length for short strings, that is, strings that are | ||
129 | ** internalized. (Cannot be smaller than reserved words or tags | ||
130 | ** for metamethods; #"function" = 8, #"__newindex" = 10; should | ||
131 | ** not be larger than 255, to allow future changes) | ||
132 | */ | ||
133 | #define LUA_MAXSHORTLEN (8 * sizeof(void*)) | ||
134 | |||
135 | |||
136 | /* | ||
128 | ** type for virtual-machine instructions | 137 | ** type for virtual-machine instructions |
129 | ** must be an unsigned with (at least) 4 bytes (see details in lopcodes.h) | 138 | ** must be an unsigned with (at least) 4 bytes (see details in lopcodes.h) |
130 | */ | 139 | */ |