Add function pointer Properties
This commit is contained in:
parent
0e9135132d
commit
c935a95cb0
4 changed files with 88 additions and 0 deletions
|
|
@ -2883,6 +2883,12 @@ static FString MakeFunctionPointerDescriptiveName(PPrototype * proto,const TArra
|
|||
return mDescriptiveName;
|
||||
}
|
||||
|
||||
|
||||
FString PFunctionPointer::GenerateNameForError(const PFunction * from)
|
||||
{
|
||||
return MakeFunctionPointerDescriptiveName(from->Variants[0].Proto, from->Variants[0].ArgFlags, FScopeBarrier::SideFromFlags(from->Variants[0].Flags));
|
||||
}
|
||||
|
||||
PFunctionPointer::PFunctionPointer(PPrototype * proto, TArray<uint32_t> && argflags, int scope)
|
||||
: PPointer(proto ? (PType*) proto : TypeVoid, false), ArgFlags(std::move(argflags)), Scope(scope)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -605,6 +605,8 @@ public:
|
|||
//PointedType = PPrototype or TypeVoid
|
||||
PFunctionPointer(PPrototype * proto, TArray<uint32_t> &&argflags, int scope);
|
||||
|
||||
static FString GenerateNameForError(const PFunction * from);
|
||||
|
||||
TArray<uint32_t> ArgFlags;
|
||||
int Scope;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue