Download Chora User Manual
Transcript
TARA Systems
Project file (EWP)
affected application.
Please note the attribute expects, that the command has the
appropriate file extension specified.
Tabelle 3-1
Beside the code generation settings, the profile may contain one or more macro
definitions. These definitions must be listed in braces and made subordinate to the
profile in the same manner as it is done with the attributes:
profile Win32 : Tara.Win32.RGBA8888
{
macro Debug
= true;
macro DefaultFont = Verdana;
}
In this case, the profile was extended by the two macros Debug and DefaultFont.
Both of these macros are available only if the Chora compiler was launched with the
profile Win32. In other profiles, the macros are either undefined or they contain other
values. The profile-dependent definition of macros allows the programmer to include
profile settings in the definition of classes, methods, etc.
Of course the attributes and the macros may be combined together within the
profile’s definition:
profile Win32 : Tara.Win32.RGBA8888
{
attr Optimization
= High;
attr ApplicationClass = Example::Application;
attr ScreenSize
= <640,480>;
attr Verbose
= false;
attr Clut
= defaultclut.txt;
macro Debug
= true;
macro DefaultFont
= Verdana;
}
Please note that each project must define at least one profile.
The profile name must be unique. Multiple identically named profiles may not be
defined in a project file. It is also not possible to use the same name for a unit and for
a profile, a language or a style.
The name of a macro must, however, be unique only within a particular profile. This
means that a macro may have the same name as a profile or a unit. It is not allowed
for two identically named macros to be defined in the same profile.
Within the Embedded Wizard IDE profiles and macros appear as bricks in the
Composer window:
A double click on the profile brick will show the macros stored within it. The attributes
of the profile or the content of the macro can be set directly in the Inspector window,
when the appropriate profile or macro brick has been previously selected:
Embedded Wizard
Chora User Manual
Copyright TARA Systems GmbH
www.embedded-wizard.de
Page 14