mesa/tests/057-empty-arguments.c
Carl Worth a19297b26e Provide support for empty arguments in macro invocations.
For this we always add a new argument to the argument list as soon as
possible, without waiting until we see some argument token. This does
mean we need to take some extra care when comparing the number of
arguments with the number of expected arguments. In addition to
matching numbers, we also support one (empty) argument when zero
arguments are expected.

Add a test case here for this, which does pass.
2010-05-27 13:29:19 -07:00

6 lines
91 B
C

#define zero() success
zero()
#define one(x) success
one()
#define two(x,y) success
two(,)