[fpc-devel] Inline methods

Ludo Brands ludo.brands at free.fr
Wed Jan 16 14:06:56 CET 2013


On 16/01/2013 13:17, Jonas Maebe wrote:
>
>
> Are those calls before or after the method body appears in the source 
> code? The compiler cannot inline anything for which it hasn't parsed 
> the source code yet.
>
>
The method was implemented below the code that used it. Moving it up 
solved it.

Actually the "inline;' in the declaration is not really used. Removing 
it results in the same code. Perhaps a Hint or Warning when inline is 
used in the declaration could avoid these mistakes.

Thanks a lot.

Ludo



More information about the fpc-devel mailing list