Contents | < Browse | Browse >
Defining a macro
================
The normal way to define or redefine macros is to use the built-in
`define':
define(NAME, EXPANSION)
which defines NAME to expand to EXPANSION.
The expansion of `define' is void.
The following example defines the macro FOO to expand to the text
`Hello World.'.
define(`foo', `Hello world.')
=>
foo
=>Hello world.
The empty line in the output is there because the newline is not a
part of the macro definition, and it is consequently copied to the
output. This can be avoided by use of the macro `dnl' (Dnl for
details).