Quantcast
Channel: Renesas Synergy Platform
Viewing all articles
Browse latest Browse all 23645

Forum Post: RE: Problems with #define TRUE -1

$
0
0
Hello Mad River, This works fine on my machine, however using if against negative value is risky (coding standards recommend explicit comparisons, i.e. #if (TRUE == OPTION_2)). I also recommend enclosing each #define in brackets: #define TRUE (-1). If block of code is inactive and definition of OPTION_2 is in different scope (file) than the conditional statement , make sure the file that defines OPTION_2 is saved. Regards

Viewing all articles
Browse latest Browse all 23645

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>