aboutsummaryrefslogtreecommitdiff
path: root/lobject.h
diff options
context:
space:
mode:
authorRoberto I <roberto@inf.puc-rio.br>2025-11-26 11:18:29 -0300
committerRoberto I <roberto@inf.puc-rio.br>2025-11-26 11:18:29 -0300
commitf33cc4ddec886ea499d7d41dd60cac5ddc5687db (patch)
tree917dccdbb60f984b21f5f7e1c0c3aa4f4f758ddc /lobject.h
parentd94f7ba3040eb06895d7305014e88157d3bfd1a1 (diff)
downloadlua-f33cc4ddec886ea499d7d41dd60cac5ddc5687db.tar.gz
lua-f33cc4ddec886ea499d7d41dd60cac5ddc5687db.tar.bz2
lua-f33cc4ddec886ea499d7d41dd60cac5ddc5687db.zip
New conceptual model for vararg
Conceptually, all functions get their vararg arguments in a vararg table. The storing of vararg arguments in the stack is always treated as an optimization.
Diffstat (limited to 'lobject.h')
-rw-r--r--lobject.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/lobject.h b/lobject.h
index 841ab5b9..070f12a4 100644
--- a/lobject.h
+++ b/lobject.h
@@ -584,9 +584,8 @@ typedef struct AbsLineInfo {
584** Flags in Prototypes 584** Flags in Prototypes
585*/ 585*/
586#define PF_ISVARARG 1 /* function is vararg */ 586#define PF_ISVARARG 1 /* function is vararg */
587#define PF_VAVAR 2 /* function has vararg parameter */ 587#define PF_VATAB 2 /* function has vararg table */
588#define PF_VATAB 4 /* function has vararg table */ 588#define PF_FIXED 4 /* prototype has parts in fixed memory */
589#define PF_FIXED 8 /* prototype has parts in fixed memory */
590 589
591 590
592/* 591/*