From Lazarus wiki
Revision as of 05:53, 14 February 2020 by Trev (talk | contribs) (English translation of German page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Deutsch (de) English (en)

Return to Reserved words.

The reserved word inline allows the compiler to copy a function or procedure in place of its call.

If the inline function or procedure is used frequently, this increases the speed of the program since the program does not have to branch to the subroutine.

The use of inline functions and inline procedures is switched off as standard. The compiler switch -Si or {$inline on} enables the use of inline functions and procedures.


Warning: Use inline with caution as there are currently bugs in all FPC versions. This affects all platforms. As of 14 February 2020


procedure subDemo(); inline;