www.delorie.com/gnu/docs/m4/m4_32.html   search  
Buy GNU books!

GNU macro processor

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

6.1 Displaying macro definitions

If you want to see what a name expands into, you can use the builtin dumpdef:


which accepts any number of arguments. If called without any arguments, it displays the definitions of all known names, otherwise it displays the definitions of the names given. The output is printed directly on the standard error output.

The expansion of dumpdef is void.

define(`foo', `Hello world.')
error-->foo:	`Hello world.'
error-->define:	<define>

The last example shows how builtin macros definitions are displayed.

See section 6.3 Controlling debugging output for information on controlling the details of the display.

  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003