14.10 Modifiers

A function or procedure declaration can contain modifiers. Here we list the various possibilities:

_________________________________________________________________________________________________________
Modifiers

--modifiers---;-public---------------------------------------------
           | ---------name   string constant--||
           | -----alias -: exsptroinrtg constant -----||
           | -----------interrupt------------||
           | -----------iochecks------------||
           | ----------call modifiers---------||
           ----------------------------------

--call modifiers----- cdecl-----------------------------------------
              ----inline-----|
              -----local-----|
              |nostackframe --|
              |--overload----|
              |---pascal ----|
              |-- register----|
              |---safecall----|
              --saveregisters--|
              ---softfloat----|
              ----svtdarcaarlgls----|
___________________________________________________________________

Free Pascal doesn’t support all Turbo Pascal modifiers (although it parses them for compatibility), but does support a number of additional modifiers. They are used mainly for assembler and reference to C object files.

  14.10.1 alias
  14.10.2 cdecl
  14.10.3 export
  14.10.4 inline
  14.10.5 interrupt
  14.10.6 iocheck
  14.10.7 local
  14.10.8 noreturn
  14.10.9 nostackframe
  14.10.10 overload
  14.10.11 pascal
  14.10.12 public
  14.10.13 register
  14.10.14 safecall
  14.10.15 saveregisters
  14.10.16 softfloat
  14.10.17 stdcall
  14.10.18 varargs