Programming language Chora: Built-in macros

Aside from allowing user-define macros, Chora compiler provides its own set of predefined macros when processing the code of methods or initialization expressions. These macros are useful to evaluate to currently selected project configuration as well as the status of the compilation:

Macro name

Short description

$composer

Determines whether the current code is executed in context of the Composer window.

$line

The number of the current code line.

$path

The name of the currently compiled method.

$platform

The name of the platform package the code is compiled for.

$profile

The name of the currently selected profile.

$prototyper

Determines whether the current code is interpreted or whether it is compiled for the target system.

$time

Current date/time.

$version

The version of Embedded Wizard.

$ApplicationClass

The name of the root object (the application) class.

$ApplicationName

The name of the application.

$ApplicationTitle

The title of the application.

$ScreenOrientation

The desired orientation of the screen in the device.

$ScreenSize

The effective size of the screen.