diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-01-13 13:49:11 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-01-13 13:49:11 -0200 |
| commit | cdd26700e8305677adf8790906a5082724ff4469 (patch) | |
| tree | c07936bd7299532ac4f27a183e9762f8232204af /lfunc.h | |
| parent | a9a4bf68b0917b2fb07c4bf79602fa5b7c59484e (diff) | |
| download | lua-cdd26700e8305677adf8790906a5082724ff4469.tar.gz lua-cdd26700e8305677adf8790906a5082724ff4469.tar.bz2 lua-cdd26700e8305677adf8790906a5082724ff4469.zip | |
definition for 'MAXUPVAL' moved for a more "private" place and its
value and comment corrected to reflect current implementation
Diffstat (limited to 'lfunc.h')
| -rw-r--r-- | lfunc.h | 9 |
1 files changed, 8 insertions, 1 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lfunc.h,v 2.13 2014/02/18 13:39:37 roberto Exp roberto $ | 2 | ** $Id: lfunc.h,v 2.14 2014/06/19 18:27:20 roberto Exp roberto $ |
| 3 | ** Auxiliary functions to manipulate prototypes and closures | 3 | ** Auxiliary functions to manipulate prototypes and closures |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -23,6 +23,13 @@ | |||
| 23 | 23 | ||
| 24 | 24 | ||
| 25 | /* | 25 | /* |
| 26 | ** maximum number of upvalues in a closure (both C and Lua). (Value | ||
| 27 | ** must fit in a VM register.) | ||
| 28 | */ | ||
| 29 | #define MAXUPVAL 255 | ||
| 30 | |||
| 31 | |||
| 32 | /* | ||
| 26 | ** Upvalues for Lua closures | 33 | ** Upvalues for Lua closures |
| 27 | */ | 34 | */ |
| 28 | struct UpVal { | 35 | struct UpVal { |
