aboutsummaryrefslogtreecommitdiff
path: root/lobject.h
diff options
context:
space:
mode:
Diffstat (limited to 'lobject.h')
-rw-r--r--lobject.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/lobject.h b/lobject.h
index f21e8a91..a22148c0 100644
--- a/lobject.h
+++ b/lobject.h
@@ -568,6 +568,7 @@ typedef struct Proto {
568*/ 568*/
569typedef struct UpVal { 569typedef struct UpVal {
570 CommonHeader; 570 CommonHeader;
571 lu_byte tbc; /* true if it represents a to-be-closed variable */
571 TValue *v; /* points to stack or to its own value */ 572 TValue *v; /* points to stack or to its own value */
572 union { 573 union {
573 struct { /* (when open) */ 574 struct { /* (when open) */
@@ -579,9 +580,6 @@ typedef struct UpVal {
579} UpVal; 580} UpVal;
580 581
581 582
582/* variant for "To Be Closed" upvalues */
583#define LUA_TUPVALTBC (LUA_TUPVAL | (1 << 4))
584
585 583
586#define ClosureHeader \ 584#define ClosureHeader \
587 CommonHeader; lu_byte nupvalues; GCObject *gclist 585 CommonHeader; lu_byte nupvalues; GCObject *gclist