A.1. Scope

LISA+ source code can be split into the following main scopes that are significant for preprocessor processing:

Includes section and resources section code

Includes section and resources section code is all code between, but not including the outermost opening and the closing braces, of includes and resources sections.

Behavior code

Behavior code is all code between, but not including the outermost opening and the closing braces, of behavior sections. All bodies of behavior definitions are behavior code. This code consists of C/C++ code that has been extended by adding LISA+ keywords.

LISA+ top-level code

All LISA+ code that is not behavior code, includes section, or resources section code is LISA+ top-level code. This code consists only of LISA+ keywords and LISA+ constructs.

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

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

Copyright © 2007-2010 ARM Limited. All rights reserved.ARM DUI 0372I
Non-Confidential