From cdd26700e8305677adf8790906a5082724ff4469 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 13 Jan 2015 13:49:11 -0200 Subject: definition for 'MAXUPVAL' moved for a more "private" place and its value and comment corrected to reflect current implementation --- lfunc.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'lfunc.h') diff --git a/lfunc.h b/lfunc.h index 5951f9ea..6fd3fbac 100644 --- a/lfunc.h +++ b/lfunc.h @@ -1,5 +1,5 @@ /* -** $Id: lfunc.h,v 2.13 2014/02/18 13:39:37 roberto Exp roberto $ +** $Id: lfunc.h,v 2.14 2014/06/19 18:27:20 roberto Exp roberto $ ** Auxiliary functions to manipulate prototypes and closures ** See Copyright Notice in lua.h */ @@ -22,6 +22,13 @@ #define isintwups(L) (L->twups != L) +/* +** maximum number of upvalues in a closure (both C and Lua). (Value +** must fit in a VM register.) +*/ +#define MAXUPVAL 255 + + /* ** Upvalues for Lua closures */ -- cgit v1.2.3-55-g6feb