aboutsummaryrefslogtreecommitdiff
path: root/lobject.h
diff options
context:
space:
mode:
Diffstat (limited to 'lobject.h')
-rw-r--r--lobject.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/lobject.h b/lobject.h
index 070f12a4..156c942f 100644
--- a/lobject.h
+++ b/lobject.h
@@ -583,10 +583,18 @@ typedef struct AbsLineInfo {
583/* 583/*
584** Flags in Prototypes 584** Flags in Prototypes
585*/ 585*/
586#define PF_ISVARARG 1 /* function is vararg */ 586#define PF_VAHID 1 /* function has hidden vararg arguments */
587#define PF_VATAB 2 /* function has vararg table */ 587#define PF_VATAB 2 /* function has vararg table */
588#define PF_FIXED 4 /* prototype has parts in fixed memory */ 588#define PF_FIXED 4 /* prototype has parts in fixed memory */
589 589
590/* a vararg function either has hidden args. or a vararg table */
591#define isvararg(p) ((p)->flag & (PF_VAHID | PF_VATAB))
592
593/*
594** mark that a function needs a vararg table. (The flag PF_VAHID will
595** be cleared later.)
596*/
597#define needvatab(p) ((p)->flag |= PF_VATAB)
590 598
591/* 599/*
592** Function Prototypes 600** Function Prototypes