4.2. Includes section

The includes section is an optional section inside the protocol declaration that is used to include C/C++ type definitions and constants that have been defined in external C/C++ header files.

The contents and semantics of the includes-section is the same as for the includes-section of components. It usually contains a list of preprocessor #include statements. These #include statements are not expanded into the LISA+ code. The #include statements are just associated with the protocol definition and the types declared in the included header files can be used in the protocol definition.

The scope of the declarations made directly or indirectly in the includes section can extend beyond the protocol definition that contains the includes section. The scope can span as far as all LISA+ files of a subsystem, including all other component and protocol definitions, but is only guaranteed to span the protocol definition itself.

Copyright © 2007-2009 ARM Limited. All rights reserved.ARM DUI 0372G
Non-Confidential