27 Sep
2001
27 Sep
'01
8:13 a.m.
Hi all I'm having problem with preprocessor conditionals containing comparisions, eg. "#if X == 4". After the following code has executed, the variable var1 is set to 10,not 15 as I expected. --------------------------- #define X 4 #define Y 1 . . . var1 := 0; #ifdef Y var1 := 10; #endif #if X == 4 var1 := 15; #endif ---------------------------- Should this work as I expect? Best Regards Sven Jauring
9104
Age (days ago)
9109
Last active (days ago)
3 comments
2 participants
participants (2)
-
Frank Heckenbach -
Sven Jauring