On Thursday 22 October 2009 18:58:59 Peter Bloomfield wrote:
My question is correct. The problem is the 64-bit compiled version of the executable results in severe image artefacts after reconstruction; I know that this is not the case with the 32-bit compiled version. If I forget this sometime in the future, then I want the program to stop execution, flag an error, and I can then go back to my journal to check why I did it this way.
why not do it at compile time?
If you only care about x86-64, do:
#if defined __x86_64__
# error "Compiling on 64-bit x86-64 not supported."
#endif
If you care about other 64-bit machines, do:
#include