aboutsummaryrefslogtreecommitdiff
path: root/lparser.h
diff options
context:
space:
mode:
authorRoberto I <roberto@inf.puc-rio.br>2025-09-16 13:26:24 -0300
committerRoberto I <roberto@inf.puc-rio.br>2025-09-16 13:26:24 -0300
commit140b672e2ee2ac842661ece4b48e1a64f0cd11ea (patch)
treeb925cd1e40712ab09a75ef2c0e30095aac0af0aa /lparser.h
parent9ea06e61f20ae34974226074fc6123dbb54a07c2 (diff)
downloadlua-140b672e2ee2ac842661ece4b48e1a64f0cd11ea.tar.gz
lua-140b672e2ee2ac842661ece4b48e1a64f0cd11ea.tar.bz2
lua-140b672e2ee2ac842661ece4b48e1a64f0cd11ea.zip
Vararg table
Not yet optimized nor documented.
Diffstat (limited to 'lparser.h')
-rw-r--r--lparser.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/lparser.h b/lparser.h
index fdbb9b8a..e479905e 100644
--- a/lparser.h
+++ b/lparser.h
@@ -97,10 +97,11 @@ typedef struct expdesc {
97/* kinds of variables */ 97/* kinds of variables */
98#define VDKREG 0 /* regular local */ 98#define VDKREG 0 /* regular local */
99#define RDKCONST 1 /* local constant */ 99#define RDKCONST 1 /* local constant */
100#define RDKTOCLOSE 2 /* to-be-closed */ 100#define RDKVATAB 2 /* vararg table */
101#define RDKCTC 3 /* local compile-time constant */ 101#define RDKTOCLOSE 3 /* to-be-closed */
102#define GDKREG 4 /* regular global */ 102#define RDKCTC 4 /* local compile-time constant */
103#define GDKCONST 5 /* global constant */ 103#define GDKREG 5 /* regular global */
104#define GDKCONST 6 /* global constant */
104 105
105/* variables that live in registers */ 106/* variables that live in registers */
106#define varinreg(v) ((v)->vd.kind <= RDKTOCLOSE) 107#define varinreg(v) ((v)->vd.kind <= RDKTOCLOSE)