
Development Tools User’s Guide
233
Intel
®
IXP2400/IXP2800 Network Processors
Transactor
macro_name
If the
macro_name
has arguments associated with it, the arguments are
substituted into the macro_text whenever the corresponding formal
argument name matches a token of the macro_text.
comma_separated_macro_arguments
When a macro has substitutable arguments, three preprocessor operators
may be applied to modify the resulting string. They are:
##
Can be inserted between two tokens in the macro_text to cause the two
adjacent tokens to be concatenated.
#
Can be prepended onto a macro_text token causing the following token
to be quoted.
###
Can be prepended causing the following token to be de-quoted if quote
characters exist as the first and last characters of the token.
Whenever a preprocessor operator is applied, the one or two tokens associated with the operator are
not expanded. In all other cases, every token in the macro_text is recursively expanded (if possible)
based on other existing macro definitions. If the recursive expansion of a macro name yields a
token of the same name, no further expansion occurs.
Example:
#define RESULT_LOW_ERROR “Mismatch of ResultLow
<31:0> with expected return value. \n”
Related commands:
#undef
8.3.2
#undef
Format:
#undef macro_name
Definition:
Deletes a previously defined preprocessor macro name.
Related commands:
#define
8.3.3
@
Format:
@cmd_file_name
Definition:
Executes a series of simulation commands in a specified command script file name.
Notes:
cmd_file_name
uses an extension of “.ind”