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.
The CCS IDE is giving a "Syntax error" icon at a line of my code. The compiler, however, is not giving any errors--the line works as it should--but the IDE is complaining.
The line of code is
VL5_AssertMsg(i==0,"fs_malloc index: %d",i);
which is a macro defined as
#define VL5_AssertMsg(expr, msg, ...) \
do if (!(expr)) VL5_AssertCall(__FILE__, __LINE__, msg, ## __VA_ARGS__); while(0)
The macro expands to
do if (!(i==0)) VL5_AssertCall("../<path here>/fs.c", 65, "fs_malloc index is %d",i); while(0);
Any ideas how to get the IDE to stop complaining?
Variadic macros were not part of the C90 spec that is the conformance target for the CCS C compiler; however, the compiler does support several extensions. Try setting the language mode to "Relaxed parsing".
The macro is expanded to include __FILE__ and __LINE__, could it be related to this thread?
http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/157438.aspx
Regards,
Patrick