AnsweredAssumed Answered

Why are "true" and "false" reserved words in VDSP++ for plain C code?

Question asked by Yaniv.Sapir on Sep 16, 2010
Latest reply on Sep 17, 2010 by StuartS

I am building a project comprised of a plain C module. In my header file, I enumerate false and true to 0 and 1 resp.:

 


typedef enum {
    false = 0,
    true  = 1,
} Boolean;

 

 

When building, I get an error message:

 

cc0040:  error: expected an identifier
  false = 0,

 

How can I eliminate VDSP++ from recognizing false and true as keywords? In other words, how can I turn off this language extension?

 

 

Thnaks,

Yaniv.

Outcomes