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.

TMS320F280040-Q1: Do anyone have experience using variadic macro to define DEBUG_PRINT under CCS?

Part Number: TMS320F280040-Q1

Tried this piece of code in Visual Studio and it works. 

Under CCS, it caused "unsolved symbols". But after including <stdio.h>, <stdlib.h>, it still doesn't work. Anyone can help with this? Thanks!

#ifdef DEBUG_PRINT
#define debugPrintf(...) UART_Printf(__VA_ARGS__);
#else
#define debugPrintf(...) /* Do nothing */
#endif

  • I am unable to reproduce this behavior ...

    Under CCS, it caused "unsolved symbols". But after including <stdio.h>, <stdlib.h>, it still doesn't work.

    Exactly what happens when it doesn't work?  

    I'd appreciate a cut-down test case.  Ideally a single file that, when compiled, has the same diagnostic.  Please show the compiler version.  Please show the build options, exactly as the compiler sees them.  Please use copy-and-paste and do not use a screen shot.

    Thanks and regards,

    -George

  • Thanks George for your reply. 

    I tried to create a test case and realized it is caused by a silly mistake. It is addressed. Thank you!