diff options
Diffstat (limited to 'types.h')
-rw-r--r-- | types.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -175,8 +175,15 @@ typedef union Value { Slice slice; struct Type *type; struct Namespace *nms; + struct VarArg *varargs; /* dynamic array */ } Value; +typedef struct VarArg { + struct Type *type; + Value val; +} VarArg; + + typedef enum { IDECL_NONE, IDECL_DECL, @@ -425,6 +432,7 @@ typedef enum { BUILTIN_CHAR, BUILTIN_BOOL, BUILTIN_TYPE, + BUILTIN_VARARGS, BUILTIN_NMS } BuiltinType; |