From 8fbb4b90fbc06104f32e39083528601a5f6c7fcf Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Wed, 14 Aug 2013 21:56:21 -0500 Subject: [PATCH] Add some flags for PFunction --- src/dobjtype.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/dobjtype.h b/src/dobjtype.h index edaaae4f24..6223d2cdff 100644 --- a/src/dobjtype.h +++ b/src/dobjtype.h @@ -13,7 +13,9 @@ // 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 +#define VARF_Optional (1<<0) // func param is optional +#define VARF_Method (1<<1) // func has an implied self parameter +#define VARF_Action (1<<2) // func has implied owner and state parameters // Symbol information ------------------------------------------------------- @@ -465,11 +467,13 @@ public: TArray ArgFlags; // Should be the same length as Proto->ArgumentTypes }; TArray Variants; + DWORD Flags; + size_t PropagateMark(); - PFunction(FName name) : PSymbol(name) {} - PFunction() : PSymbol(NAME_None) {} + PFunction(FName name) : PSymbol(name), Flags(0) {} + PFunction() : PSymbol(NAME_None), Flags(0) {} }; // Meta-info for every class derived from DObject ---------------------------