This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler error with cl6x and #define with variable arguments

I'm trying to compile the following #define:

#define debug(string, ...)			\
printf ("This is "string"\n", __VA_ARGS__)

This gives the following compiler error:

error: expected a ")"

I then tried to use a different approach:

#define P_VAR(string, args...) \
printf ("This is "string"\n", ##args)

This however gives another compiler error:

 error: expected an identifier

Both of these two approaches compiles without any error using GCC 4.6.1.

Any ideas how to implement this using the cl6x compiler for OMAP processor?