Arguments and Argument Substitution
Dummy argument - An identifier used to indicate where an actual argument is to be
substituted in the macro, module, or directive.
Actual argument - The argument (value) used in the macro, directive or module. The actual
argument is substituted for the dummy argument. An actual argument can be any
text, including identifiers, numbers, strings, operators, sets, or any other
element of ABEL-HDL.
Dummy arguments are specified in macro declarations and in the bodies of
macros, modules and directives. The dummy argument is preceded by a question mark
in the places where an actual argument is to be substituted. The question mark
distinguishes the dummy arguments from other ABEL-HDL identifiers occurring in
the source file.
Take for example, the following macro declaration arguments:
The equation
Argument Guidelines
Dummy arguments are place holders for actual arguments.
A question mark preceding the dummy argument indicates that an actual argument
is to be substituted.
Actual arguments replace dummy arguments before the source file is checked for
correctness.
Spaces in actual arguments are retained. Usually spaces will not change the
functionality, but they are significant with directives that compare two values,
such as @ifiden.
See Also