Added a way to specify paramater flags for PFunction

- And right now, the only flag is "Optional".
This commit is contained in:
Randy Heit 2013-08-10 20:24:12 -05:00
parent 973b0f5c56
commit 55bec365e8

View file

@ -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<DWORD> ArgFlags; // Should be the same length as Proto->ArgumentTypes
};
TArray<Variant> Variants;