|
@@ -895,7 +895,7 @@ procedure SetDynArrayProp(Instance: TObject; PropInfo: PPropInfo; const Value: P
|
|
|
// Extended RTTI
|
|
|
function GetAttributeTable(TypeInfo: PTypeInfo): PAttributeTable;
|
|
|
|
|
|
-function GetPropAttribute(PropInfo: PPropInfo; AttributeNr: Word): TCustomAttribute;
|
|
|
+function GetPropAttribute(PropInfo: PPropInfo; AttributeNr: Word): TCustomAttribute; inline;
|
|
|
|
|
|
function GetAttribute(AttributeTable: PAttributeTable; AttributeNr: Word): TCustomAttribute;
|
|
|
|
|
@@ -989,7 +989,7 @@ begin
|
|
|
end;
|
|
|
end;
|
|
|
|
|
|
-function GetPropData(TypeInfo : PTypeInfo; TypeData: PTypeData) : PPropData;
|
|
|
+function GetPropData(TypeInfo : PTypeInfo; TypeData: PTypeData) : PPropData; inline;
|
|
|
var
|
|
|
p: PtrUInt;
|
|
|
begin
|
|
@@ -997,19 +997,6 @@ begin
|
|
|
Result := PPropData(aligntoptr(Pointer(p)));
|
|
|
end;
|
|
|
|
|
|
-function GetPropAttribute(PropInfo: PPropInfo; AttributeNr: Word): TCustomAttribute;
|
|
|
-var
|
|
|
- attrtable: PAttributeTable;
|
|
|
-begin
|
|
|
- attrtable := PropInfo^.AttributeTable;
|
|
|
- if not Assigned(attrtable) or (AttributeNr >= attrtable^.AttributeCount) then
|
|
|
- result := Nil
|
|
|
- else
|
|
|
- begin
|
|
|
- result := attrtable^.AttributesList[AttributeNr]();
|
|
|
- end;
|
|
|
-end;
|
|
|
-
|
|
|
function GetAttribute(AttributeTable: PAttributeTable; AttributeNr: Word): TCustomAttribute;
|
|
|
var
|
|
|
AttributeProcList: TAttributeProcList;
|
|
@@ -1022,6 +1009,11 @@ begin
|
|
|
end;
|
|
|
end;
|
|
|
|
|
|
+function GetPropAttribute(PropInfo: PPropInfo; AttributeNr: Word): TCustomAttribute;
|
|
|
+begin
|
|
|
+ Result := GetAttribute(PropInfo^.AttributeTable, AttributeNr);
|
|
|
+end;
|
|
|
+
|
|
|
Function GetEnumName(TypeInfo : PTypeInfo;Value : Integer) : string;
|
|
|
|
|
|
Var PS : PShortString;
|