Hi Pelle. Thanks a lot for Pelles C. It's a great development system.
Although C99 standard (I think) doesn' t mention this detail, could you add support for calling variadic macros with no extra arguments?
Example:
#define method(o, m, ...) o.m(o, __VA_ARGS__)
This wors fine for macro calls with 3 or more arguments:
method(table, insert, "my text");
method(calc, set, 12, 144);
Unfortunately, if no variadic args are passed, the macro doesn't work.
method(table, clear);
This produces an error: Disagreement in number of macro arguments.
Maybe it's a feature to bundle into the Microsoft extensions part of Pelles C, as
VC++ 2005 supports it. And
GCC does so, too.
What do you thing about it?
Thanks again.