27.05.2015, 13:50
Actually nevermind, you cannot check this at compile time. You must check it at runtime because you depend on the value of a runtime variable. Try using assert(), although I believe it only properly works in main(). Perhaps it will display something if crashdetect is enabled.

