2.3. Includes section

The includes section is a dedicated place for #include preprocessor statements. See Chapter 3 Communication with C++ Code and Appendix A Preprocessor.

The declarations that result from the #include statements are visible in the bodies of the component behaviors. However, the #include statements are not expanded into the LISA+ code itself. This means that #defines coming from the #include statements are not visible in the LISA+ code and the included header files must not contain any LISA+ code.

Declarations in the includes sections can be made visible globally to other components. This means that declarations in the includes sections might conflict with other declarations in other includes sections of other components if they use the same names for different purposes. Therefore ARM recommends using only declarations in the includes section that do not conflict with other components declarations such as header files that are shared between components.

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