Pelles C forum
Pelles C => Feature requests => Topic started by: jiake on May 05, 2014, 11:32:02 AM
-
Microsoft Visual C++ support this feature:
#define PRINTF(fmt, ...) printf(fmt, ##__VA_ARGS__)
The following usage are both valid:
PRINTF("Good!");
PRINTF("Good (%d)!", 0);
You can pass nothing to the variable numbers of arguments.
I like Pelles C for it supports many new features than Visual C++.
But this one hasn't been supported until 8.0 RC...
-
#define PRINTF(...) printf(__VA_ARGS__)
-
#define PRINTF(...) printf(__VA_ARGS__)
And your point is? That still requires an argument.
-
Right. And printf requires a format string.
-
Right. And printf requires a format string.
Do you seriously believe that printf is the only function that qualifies for the usage of macro va_args?
-
Try to compile:
int __cdecl test(...)
{
return 0;
}
;)
-
I would also like this feature.
Does anyone know a hack that would enable this, or at least similar behavior?