One or more names (in accordance with the naming conventions of
the C language) separated by commas. An optional value may be
assigned to each name.
Default
None.
µVision
Options — A51 — Misc
Controls.
Description
The DEFINE directive defines C preprocessor symbols on the
assembler command line. This is equivalent to using the
#define directive in your program source code. You may use the
#if, #ifdef, and #ifndef preprocessor directives
to query names defined with the DEFINE directive.
Defined names are copied exactly as they are entered and are
case-sensitive. Each name may be assigned a value.
Note
The DEFINE directive may be specified only on the
command line. Use the C preprocessor #define directive to
define symbols inside an assembler source file.
The DEFINE directive may not be used to define
preprocessor macros.
The C preprocessor processes the source text of a source file
before it is actually assembled. This means that the DEFINE
symbol can be used anywhere in the source code. For example DEFINE
(check="15+5") replaces all symbols that have the name
check with the text 15+5.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.