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.

using #define function with (void)(0)



 Hi,

I'm having some issue trying to get the function highlighted after the #else(I'm using CCSv5.5 at this moment).  I would like my function to do nothing when DOPPLER_TEST_USE_STP_FUNCTIONS is not defined.

Similar to how <assert.h>uses the (void)(0), so "programmers can eliminate the assertions just by recompiling the program, without changing the source code"

ex:

link: en.wikipedia.org/.../Assert.h

My code:

However, it is not working. Instead I get this error on the function. :(

 

Hope this is enough info to see what I may be doing wrong....

Best Regards,

Alvaro