A.2 LISA+ preprocessor scopes

LISA+ source code has different preprocessor scopes.

LISA+ top-level
All LISA+ code that is not behavior, includes, or resources section code is LISA+ top-level code. This code consists only of LISA+ keywords and LISA+ constructs.
includes and resources
All of the code between but not including the outermost opening and the closing braces, of includes and resources sections.
behavior
All of the code between but not including the outermost opening and the closing braces, of behavior sections. All bodies of behavior definitions are behavior code. The code is C/C++ with LISA+ keyword extensions.

Each character of LISA+ source code belongs to one of these scopes.

These scopes affect macro expansion and impose restrictions on some preprocessor statements.

Non-ConfidentialPDF file icon PDF version101092_0100_03_en
Copyright © 2014–2018 Arm Limited or its affiliates. All rights reserved.