Ada Programming/Pragmas/Inline
Appearance
Summary
[edit | edit source]The pragma Inline specifies that a subprogram should be expanded inline when called in code.
Example
[edit | edit source]function
My_Functionreturn
Integeris
begin
return
1+2; -- A simple function suitable for inliningend
My_Function;pragma
inline(My_Function); ... Some_Variable := My_Function; -- Will be expanded by compiler.