Tool/software: TI C/C++ Compiler
Hi,
Currently I am getting this error: "Extra text after expected end of preprocessing directive"
when using this code:
#if defined(DEBUG_ENABLE_ALL)
printf("Text (%s:%d)\n", __FILE__, __LINE__);
#endif
The same code is also in other files in my project, which all compile just fine. In this file, the code is located like this:
static void taskFxn(UArg a0, UArg a1)
{
// Initialize application
init();
// Application main loop
for (;;)
{
switch (State)
{
case stWAIT:
{
#if defined(DEBUG_ENABLE_ALL)
printf("Text (%s:%d)\n", __FILE__, __LINE__);
#endif
With of course more code following it.
I really do not see why it should lead to this error so I would appreciate someone with a better eye to help me!