Appendix A. Preprocessor

This appendix describes the C-like preprocessor statements that can be used in LISA+ source code. It has the following sections:


As in C, the preprocessor is applied to the source code before the underlying LISA+ parser is seeing the source code. The preprocessor statements are not part of the formal LISA+ language, but can be seen as a layer on top of the LISA+ language.

Unlike C, however, the LISA+ preprocessor interacts with the actual LISA+ language constructs. Some preprocessor features, such as macro replacement and includes, are deliberately disabled in certain contexts to ensure that tools that read, modify and write LISA+ code work correctly. There are, therefore, subtle restrictions to using preprocessor statement in LISA+ code. These restrictions are described in this appendix.

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