A.4 Predefined LISA+ symbols and macros

ARM defines these preprocessor version symbols for all LISA+ files in all scopes, for Fast Model Tools versions greater than or equal to 2.2.024, but not for earlier versions.

SYSTEM_GENERATOR_MAJOR_VERSION
Major version of the Fast Model Tools. The value is an unsigned integer, for example 2 in System Generator (SimGen) 2.3.044.
SYSTEM_GENERATOR_MINOR_VERSION
Minor version of the Fast Model Tools. The value is an unsigned integer, for example 3 in SimGen 2.3.044.
SYSTEM_GENERATOR_REVISION
Revision of the Fast Model Tools. The value is an unsigned integer, for example 44 in SimGen 2.3.044.
SYSTEM_GENERATOR_VERSION
Fast Model Tools version as string constant, for example "2.3.044" for version 2.3.044.
SYSTEM_GENERATOR_VERSION_AT_LEAST(major,minor,revision)

true (1) if the Fast Model Tools version is at least major.minor.revision.

For example, SYSTEM_GENERATOR_AT_LEAST(2,1,57) evaluates to 1 for SimGen 2.3.044 because 2.3.044 is greater than 2.1.057.

SYSTEM_GENERATOR_VERSION_EQUALS(major,minor,revision)
true (1) if the Fast Model Tools version is exactly major.minor.revision.
linux
true (1) if parsing LISA+ files or generating a simulator on Linux host systems. ARM does not define it on other host platforms.
WIN32
true (1) if parsing LISA+ files or generating a simulator on Windows host systems. ARM does not define it on other host platforms.

ARM does not define preprocessor symbols that C/C++ compilers typically predefine on certain host platforms for LISA+ files, not even in behavior bodies. For example, ARM does not define the symbols __cplusplus or __GNUC__ for the preprocessing of LISA+ files. However, you can set preprocessor symbols manually in the project settings for specific host platforms.

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