From 55bec365e8a76027627faf34abfc0988cc9c33df Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Sat, 10 Aug 2013 20:24:12 -0500 Subject: [PATCH] Added a way to specify paramater flags for PFunction - And right now, the only flag is "Optional". --- src/dobjtype.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/dobjtype.h b/src/dobjtype.h index c9ba10f39..67e3f5f4f 100644 --- a/src/dobjtype.h +++ b/src/dobjtype.h @@ -8,6 +8,13 @@ #include "thingdef/thingdef_type.h" #include "vm.h" +// Variable/parameter/field flags ------------------------------------------- + +// Making all these different storage types use a common set of flags seems +// like the simplest thing to do. + +#define VARF_Optional (1<<0) // func param is optional + // Symbol information ------------------------------------------------------- class PSymbol : public DObject @@ -448,6 +455,7 @@ public: { PPrototype *Proto; VMFunction *Implementation; + TArray ArgFlags; // Should be the same length as Proto->ArgumentTypes }; TArray Variants;