add ifndef convenience macro

This commit is contained in:
Chris PeBenito 2006-06-12 15:49:48 +00:00
parent 8e86e4e7a1
commit 06b9bd1a23
1 changed files with 7 additions and 0 deletions

View File

@ -11,6 +11,13 @@
#
define(`shiftn',`ifelse($1,0,`shift($*)',`shiftn(decr($1),shift(shift($*)))')')
#
# ifndef(expr,true_block,false_block)
#
# m4 does not have this.
#
define(`ifndef',`ifdef(`$1',`$3',`$2')')
#
# __endline__
#