A.2. Predefined symbols and macros

The following preprocessor symbols are always defined in all LISA+ files in all scopes:

SYSTEM_GENERATOR_MAJOR_VERSION

Major version of the Fast Model Tools. The value is an unsigned integer such as, for example, 2 for System Generator 2.3.044.

SYSTEM_GENERATOR_MINOR_VERSION

Minor version of the Fast Model Tools. The value is an unsigned integer such as, for example, 3 for System Generator 2.3.023.

SYSTEM_GENERATOR_REVISION

Revision of the Fast Model Tools. The value is an unsigned integer such as, for example, 44 for System Generator 2.3.044.

SYSTEM_GENERATOR_VERSION

Fast Model Tools version as string constant such as, for example, "2.3.044" for version 2.3.044.

SYSTEM_GENERATOR_VERSION_AT_LEAST(major,minor,revision)

This macro evaluates to 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 System Generator 2.3.044 since 2.3.044 is greater than 2.1.057.

SYSTEM_GENERATOR_VERSION_EQUALS(major,minor,revision)

This macro evaluates to true (1) if the Fast Model Tools version is exactly major.minor.revision.

linux

Defined as 1 if parsing LISA+ files or generating a simulator on Linux host systems. Undefined on all other host platforms.

WIN32

Defined as 1 if parsing LISA+ files or generating a simulator on Windows host systems. Undefined on all other host platforms.

Note

The version symbols above are only defined for Fast Model Tools versions greater than or equal to 2.2.024. For earlier versions, the version symbols are undefined.

Preprocessor symbols that are typically predefined by C/C++ compilers on certain host platforms are not defined for LISA+ files, not even in behavior bodies. For example, the symbols __cplusplus or __GNUC__ are not defined when LISA+ files are preprocessed. However, preprocessor symbols can always be set manually in the project settings for specific host platforms.

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