Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2014-03

nested inline

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Xiangrong Fang

Hi All,

Is nested inline allowed? i.e. will the compiler generate inlined code for the following source:

procedure a; inline;
begin
end;
procedure b; inline;
begin
  a;
end;

if I call b() in the main program, will the compile copy code for both a and b to avoid function calls?

Thanks,
Xiangrong