mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-29 07:22:05 +00:00
Change PFunction's superclass from PNamedType to PSymbol
This commit is contained in:
parent
6575499f37
commit
973b0f5c56
2 changed files with 5 additions and 3 deletions
|
@ -253,7 +253,6 @@ void PType::StaticInit()
|
|||
RUNTIME_CLASS(PMap)->TypeTableType = RUNTIME_CLASS(PMap);
|
||||
RUNTIME_CLASS(PStruct)->TypeTableType = RUNTIME_CLASS(PStruct);
|
||||
RUNTIME_CLASS(PPrototype)->TypeTableType = RUNTIME_CLASS(PPrototype);
|
||||
RUNTIME_CLASS(PFunction)->TypeTableType = RUNTIME_CLASS(PFunction);
|
||||
RUNTIME_CLASS(PClass)->TypeTableType = RUNTIME_CLASS(PClass);
|
||||
|
||||
TypeTable.AddType(TypeSInt8 = new PInt(1, false));
|
||||
|
|
|
@ -440,9 +440,9 @@ protected:
|
|||
};
|
||||
|
||||
// TBD: Should we really support overloading?
|
||||
class PFunction : public PNamedType
|
||||
class PFunction : public PSymbol
|
||||
{
|
||||
DECLARE_CLASS(PFunction, PNamedType);
|
||||
DECLARE_CLASS(PFunction, PSymbol);
|
||||
public:
|
||||
struct Variant
|
||||
{
|
||||
|
@ -452,6 +452,9 @@ public:
|
|||
TArray<Variant> Variants;
|
||||
|
||||
size_t PropagateMark();
|
||||
|
||||
PFunction(FName name) : PSymbol(name) {}
|
||||
PFunction() : PSymbol(NAME_None) {}
|
||||
};
|
||||
|
||||
// Meta-info for every class derived from DObject ---------------------------
|
||||
|
|
Loading…
Reference in a new issue