mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-13 16:07:55 +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 "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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue