mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 15:29:14 +02:00
* Add woNoAsm option
git-svn-id: trunk@46312 -
This commit is contained in:
parent
15cccf154a
commit
608fded11a
@ -35,7 +35,8 @@ type
|
|||||||
woAddLineNumber, // Prefix line with generated line numbers in comment
|
woAddLineNumber, // Prefix line with generated line numbers in comment
|
||||||
woAddSourceLineNumber, // Prefix line with original source line numbers (when available) in comment
|
woAddSourceLineNumber, // Prefix line with original source line numbers (when available) in comment
|
||||||
woForwardClasses, // Add forward definitions for all classes
|
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;
|
TPasWriterOptions = Set of TPasWriterOption;
|
||||||
|
|
||||||
@ -842,7 +843,7 @@ begin
|
|||||||
if AProc.IsStatic then
|
if AProc.IsStatic then
|
||||||
Add(' static;');
|
Add(' static;');
|
||||||
end;
|
end;
|
||||||
if pmAssembler in AProc.Modifiers then
|
if (pmAssembler in AProc.Modifiers) and Not (woNoAsm in OPtions) then
|
||||||
Add(' assembler;');
|
Add(' assembler;');
|
||||||
if AProc.CallingConvention<>ccDefault then
|
if AProc.CallingConvention<>ccDefault then
|
||||||
Add(' '+cCallingConventions[AProc.CallingConvention]+';');
|
Add(' '+cCallingConventions[AProc.CallingConvention]+';');
|
||||||
|
Loading…
Reference in New Issue
Block a user