mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-29 07:22:05 +00:00
Added a way to specify paramater flags for PFunction
- And right now, the only flag is "Optional".
This commit is contained in:
parent
973b0f5c56
commit
55bec365e8
1 changed files with 8 additions and 0 deletions
|
@ -8,6 +8,13 @@
|
||||||
#include "thingdef/thingdef_type.h"
|
#include "thingdef/thingdef_type.h"
|
||||||
#include "vm.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 -------------------------------------------------------
|
// Symbol information -------------------------------------------------------
|
||||||
|
|
||||||
class PSymbol : public DObject
|
class PSymbol : public DObject
|
||||||
|
@ -448,6 +455,7 @@ public:
|
||||||
{
|
{
|
||||||
PPrototype *Proto;
|
PPrototype *Proto;
|
||||||
VMFunction *Implementation;
|
VMFunction *Implementation;
|
||||||
|
TArray<DWORD> ArgFlags; // Should be the same length as Proto->ArgumentTypes
|
||||||
};
|
};
|
||||||
TArray<Variant> Variants;
|
TArray<Variant> Variants;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue