* Add woAlwaysRecordHelper option

git-svn-id: trunk@46318 -
This commit is contained in:
michael 2020-08-08 09:08:44 +00:00
parent 99551dc6b2
commit 67f5cc1003

View File

@ -37,7 +37,8 @@ type
woForwardClasses, // Add forward definitions for all classes
woForceOverload, // Force 'overload;' on overloads that are not marked as such.
woNoAsm, // Do not allow asm block
woSkipPrivateExternals
woSkipPrivateExternals, // Skip generation of external procedure declaration in implementation section
woAlwaysRecordHelper // Force use of record helper for type helper
);
TPasWriterOptions = Set of TPasWriterOption;
@ -624,6 +625,11 @@ begin
okObject: Add('object');
okClass: Add('class');
okInterface: Add('interface');
okTypeHelper :
if HasOption(woAlwaysRecordHelper) then
Add('record helper')
else
Add('type helper');
okRecordHelper: Add('record helper');
okClassHelper: Add('class helper');
end;