* Add woNoAsm option

git-svn-id: trunk@46312 -
This commit is contained in:
michael 2020-08-08 07:56:36 +00:00
parent 15cccf154a
commit 608fded11a

View File

@ -35,7 +35,8 @@ type
woAddLineNumber, // Prefix line with generated line numbers in comment
woAddSourceLineNumber, // Prefix line with original source line numbers (when available) in comment
woForwardClasses, // Add forward definitions for all classes
woForceOverload // Force 'overload;' on overloads that are not marked as such.
woForceOverload, // Force 'overload;' on overloads that are not marked as such.
woNoAsm // Do not allow asm block
);
TPasWriterOptions = Set of TPasWriterOption;
@ -842,7 +843,7 @@ begin
if AProc.IsStatic then
Add(' static;');
end;
if pmAssembler in AProc.Modifiers then
if (pmAssembler in AProc.Modifiers) and Not (woNoAsm in OPtions) then
Add(' assembler;');
if AProc.CallingConvention<>ccDefault then
Add(' '+cCallingConventions[AProc.CallingConvention]+';');