User`s manual

Dynamic C Users Manual digi.com 313
-d MacroDefinition
Description: Define macros and optionally equate to values. The following rules apply
and are shown here with examples and equivalent #define form:
Separate macros with semicolons.
dccl_cmp myProgram.c -d DEF1;DEF2
#define DEF1
#define DEF2
A defined macro may be equated to text by separating the defined macro
from the text with an equal sign (=).
dccl_cmp myProgram.c -d DEF1=20;DEF2
#define DEF1 20
#define DEF2
Macro definitions enclosed in quotation marks will be interpreted as a sin-
gle command line parameter.
dccl_cmp myProgram.c -d “DEF1=text with spaces;DEF2”
#define DEF1 text with spaces
#define DEF2
A backslash preceding a character will be kept except for semicolon, quote
and backslash, which keep only the character following the backslash. An
escaped semicolon will not be interpreted as a macro separator and an
escaped quote will not be interpreted as the quote defining the end of a
command line parameter of text.
dccl_cmp myProgram.c -d DEF1=statement\;;ESCQUOTE=\\\”
#define DEF1 statement;
#define ESCQUOTE \”
dccl_cmp myProg.c -d “FSTR = \”Temp = %6.2F DEGREES C\n\””
#define FSTR “Temp = %6.2f degrees C\n”
Factory Default: None.
GUI Equivalent: Select the Defines tab from Project Options.