mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 18:09:27 +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
|
||||
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]+';');
|
||||
|
Loading…
Reference in New Issue
Block a user