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.

ccs 4.0 macro with varargs

Other Parts Discussed in Thread: TMS320C6415

Hello,

i am porting some legacy code that hash a nice logging macro

that uses varargs to tag the line, file of the message.

I have tried both the old gcc syntax and the new iso

but i could not get it to work.

Is code like this supposed to work?

 

#define dlog(fmt, ...) log(__LINE__, __FILE__, fmt, __VA_ARGS__)

 

I did look for the manual of the compiler (to know the language,

preprocessor and command line switches) but i did not

find any.

Thank You ..