preprocessor
From: <- Chameleon -> (cham_gss_at_hotmail.NOSPAM.com)
Date: 02/28/04
- Next message: Gary: "Re: C++ HTML Reference ?"
- Previous message: Mike Wahler: "Re: Infinite Loop Detector"
- Next in thread: Leor Zolman: "Re: preprocessor"
- Reply: Leor Zolman: "Re: preprocessor"
- Reply: Andrey Tarasevich: "Re: preprocessor"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 28 Feb 2004 03:55:05 +0200
I have a preprocessor constant (SUPPORT_PNG_IMAGE) with 3 states, to control the compilation:
---------
#undef SUPPORT_PNG_IMAGE
#define SUPPORT_PNG_IMAGE
#define SUPPORT_PNG_IMAGE ONLY
---------
With the 1st & 3rd line the following line works
---------
#if SUPPORT_PNG_IMAGE == ONLY
---------
but with the 2nd, compiler throws:
---------
fatal error C1017: invalid integer constant expression
---------
how can I handle this?
thanks
- Next message: Gary: "Re: C++ HTML Reference ?"
- Previous message: Mike Wahler: "Re: Infinite Loop Detector"
- Next in thread: Leor Zolman: "Re: preprocessor"
- Reply: Leor Zolman: "Re: preprocessor"
- Reply: Andrey Tarasevich: "Re: preprocessor"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|