Preprocessor #if confusion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux