13.03.2013, 13:19
Compiler error is impossible if the value is set after compiling, obviously. This is why it won't work with #if #error #endif. The assert function is a "solution", although I don't see why you don't just use normal prints instead to "simulate" an error, as assert won't tell you anything else but "Assertion failed".