Preprocessor #if confusion

Marcin S msporysz06@gmail.com
Fri Jul 6 06:23:00 GMT 2012


Hello,
I have a problem with #if preprocessor instructions
My source file is compiled with -D__TARGET_PROCESSOR=STM32F103RB

and example snippet IN source file:

#if __TARGET_PROCESSOR==SOMETHING_ELSE
  #error
#endif


And preprocessor always find this expression as TRUE no matter what
will be on right side.
Why? And how to make it right



More information about the Gcc-help mailing list