
February 17th, 2003, 12:36 PM
|
|
|
|
INTSIZE is an integer variable that will only exist when the code is running. #if is a compile time only test. Since INTSIZE has no value at compile time, it will evaluate to zero. If you really want to do a one time capture of sizeof(int) you can try this instead:
#define INTSIZE (sizeof(int))
Then your #if will work.
|