Forum > General
Get rid of the assembler attribute in OBJFPC mode ?
(1/1)
Basile B.:
The Q is here:
https://stackoverflow.com/questions/27790724/omit-assembler-keyword-for-assembler-functions/27793497?noredirect=1#comment44015691_27793497
in my answer, I assert that it's only possible in {$MODE DELPHI}, I might be wrong. Is that right ?
engkin:
Your answer is right according to the source code of the compiler:
--- Code: --- { do we have an assembler block without the po_assembler?
we should allow this for Delphi compatibility (PFV) }
if (token=_ASM) and (m_delphi in current_settings.modeswitches) then
include(current_procinfo.procdef.procoptions,po_assembler);
--- End code ---
Navigation
[0] Message Index