J
Johannes Schaub
I have this code in my pet project
#if sizeof -1 > 4
#error "This doesn't work on 64bit"
#endif
My friend was telling me that this shouldn't work because "sizeof is not
evaluated in the preprocessor". Yet the compiler accepts it and my program
works.
Can anybody please explain this? Is it a compiler bug? Thanks to all!
#if sizeof -1 > 4
#error "This doesn't work on 64bit"
#endif
My friend was telling me that this shouldn't work because "sizeof is not
evaluated in the preprocessor". Yet the compiler accepts it and my program
works.
Can anybody please explain this? Is it a compiler bug? Thanks to all!