Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Variable number of args in a #define macro

Using CDT 2.0 on Windows XP cygwin, I don't seem to be able to define a
variable args macro that the C++ Indexer is happy with

The macro definition looks like this:
#define DEBUGL(args...) fprintf (stderr, args)

The usage like this:
DEBUGL("MAIN loopCount %d", loopCount);

And the error:
C/C++ Indexer Problem: Macro usage error for macro : DEBUGL in file:  main.c
on line: 75

Is there a way to do this? Should it work?

Thanks for any information

Matthew



Back to the top