summaryrefslogtreecommitdiff
path: root/regress/usr.bin/m4/args.m4
blob: 8d8710116256ae763c20e916b06f81bc31542e55 (plain)
1
2
3
4
5
6
7
8
dnl $OpenBSD: args.m4,v 1.1 2001/10/10 23:23:59 espie Exp $
dnl Expanding all arguments
define(`A', `first form: $@, second form $*')dnl
define(`B', `C')dnl
A(1,2,`B')
dnl indirection means macro can get called with argc == 2 !
indir(`A',1,2,`B')
indir(`A')