.\" make sure macro argument references work
.\" $0 = macro name
.\" $n, n > 0 = macro argument n (if n > \n(.$, arg should be empty)
.\" $* = all arguments, space-separated
.\" $@ = all arguments, space-separated and double-quoted
.\"
.cp 0
.nf
.de test-macro
Macro name: \\$0
Number of arguments: \\n(.$
Argument 1: \\$1
Argument 2: \\$2
Argument 3: \\$3
All arguments: \\$*
All arguments, quoted: \\$@
..
.\"
-----
Called with no arguments
.test-macro
-----
Called with one argument
.test-macro arg1
-----
Called with three arguments
.test-macro arg1 arg2 arg3
-----
Called with five arguments
.test-macro arg1 arg2 arg3 arg4 arg5
