| www.delorie.com/gnu/docs/m4/m4_67.html | search |
![]() Buy GNU books! | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
You can print error messages using errprint:
errprint(message, ...) |
The expansion of errprint is void.
errprint(`Illegal arguments to forloop ') error-->Illegal arguments to forloop => |
A trailing newline is not printed automatically, so it must be
supplied as part of the argument, as in the example. (BSD flavored
m4's do append a trailing newline on each errprint call).
To make it possible to specify the location of the error, two utility builtins exist:
__file__ __line__ |
errprint(`m4:'__file__:__line__: `Input error ') error-->m4:56.errprint:2: Input error => |
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |