I usually use the following when defining true and false.Originally posted by FillYourBrain
#define when used for values such as those to be used in a switch is great. I can't imagine that being bad form. For something like NULL,TRUE,FALSE it's perfect
#define NULL 0
#define TRUE 1
#define FALSE 0
No problems there. but will agree certainly that macros (code hidden behind #defines) is naughty.
That way, 5 == 5 is always true regardless of system. Just how I usually do it.Code:#define TRUE ( 5 == 5 ) #define FALSE (!TRUE)