1 dnl @ ../doc/m4.texi:3590: Origin of test
2 dnl @ expected status: 0
4 dnl @ Copyright (C) 2006, 2007, 2008, 2009 Free Software
6 dnl @ This file is free software; the Free Software Foundation
7 dnl @ gives unlimited permission to copy and/or distribute it
8 dnl @ with or without modifications, as long as this notice
10 define(`define_blind', `ifelse(`$#', `0', ``$0'',
11 `_$0(`$1', `$2', `$'`#', `$'`0')')')
13 define(`_define_blind', `define(`$1',
14 `ifelse(`$3', `0', ``$4'', `$2')')')
17 dnl @result{}define_blind
18 define_blind(`foo', `arguments were $*')
23 dnl @result{}arguments were bar
24 define(`blah', defn(`foo'))
29 dnl @result{}arguments were a,b
31 dnl @result{}ifelse(`$#', `0', ``$0'', `arguments were $*')