< Ada Programming < Pragmas 
 
 
      
Ada. Time-tested, safe and secure.
Summary
The pragma Inline specifies that a subprogram should be expanded inline when called in code.
Example
functionMy_FunctionreturnIntegerisbeginreturn1+2; -- A simple function suitable for inliningendMy_Function;pragmainline(My_Function); ... Some_Variable := My_Function; -- Will be expanded by compiler.
See also
Wikibook
    This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.