N
Noob
Hello,
I'm using the classic...
#define VERSION_ID(major, minor, rev) ((major << 16) + (minor << 8) + rev)
#if CURRENT_VERSION > VERSION_ID(3,8,1)
/*** DO SOMETHING ***/
#else
/*** DO ANOTHER THING ***/
#endif
As it is, I need the pre-processor to handle arithmetic
on integers wider than 16 bits.
I have a nagging feeling that some implementations may
be limited to 16 bits integers, but I couldn't find
anything after a quick scan of the C90 draft.
What are the guarantees for integer arithmetic by the
pre-processor? Can it handle up to 32-bit integers?
64-bit integers?
Which section handles these details?
3.8 PREPROCESSING DIRECTIVES ?
Regards.
I'm using the classic...
#define VERSION_ID(major, minor, rev) ((major << 16) + (minor << 8) + rev)
#if CURRENT_VERSION > VERSION_ID(3,8,1)
/*** DO SOMETHING ***/
#else
/*** DO ANOTHER THING ***/
#endif
As it is, I need the pre-processor to handle arithmetic
on integers wider than 16 bits.
I have a nagging feeling that some implementations may
be limited to 16 bits integers, but I couldn't find
anything after a quick scan of the C90 draft.
What are the guarantees for integer arithmetic by the
pre-processor? Can it handle up to 32-bit integers?
64-bit integers?
Which section handles these details?
3.8 PREPROCESSING DIRECTIVES ?
Regards.