E
Erik Leunissen
L.S.
How can I make certain code parts be compiled conditionally, depending
on the definition of a macro such as:
#define VERSION "2.3"
Is it all right to do things like:
#if VERSION == "2.3"
...../* conditionally compiled code */
#endif
#if VERSION != "2.3"
...../* conditionally compiled code */
#endif
#if VERSION > "2.3"
...../* conditionally compiled code */
#endif
Or should I go about this differently? Please note that I'm not in the
position to change the macro definition.
Thanks for any help,
Erik Leunissen
How can I make certain code parts be compiled conditionally, depending
on the definition of a macro such as:
#define VERSION "2.3"
Is it all right to do things like:
#if VERSION == "2.3"
...../* conditionally compiled code */
#endif
#if VERSION != "2.3"
...../* conditionally compiled code */
#endif
#if VERSION > "2.3"
...../* conditionally compiled code */
#endif
Or should I go about this differently? Please note that I'm not in the
position to change the macro definition.
Thanks for any help,
Erik Leunissen