411 REFERENCE · Wikibooks
Ada Programming/Pragmas/Inline
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Pragmas Inline
__TOC__
Summary
The pragma Inline specifies that a subprogram should be expanded inline when called in code.
Example
function My_Function return Integer is begin
return 1+2; A simple function suitable for inlining
end My_Function;
inline(My_Function);
...
Some_Variable := My_Function; Will be expanded by compiler.
See also
Wikibook
Ada Programming
Ada Programming/Pragmas
Inline