#if directive problem
#6

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".
Reply


Messages In This Thread
#if directive problem - by RajatPawar - 13.03.2013, 08:10
Re: #if directive problem - by Vince - 13.03.2013, 08:18
Re: #if directive problem - by RajatPawar - 13.03.2013, 08:36
Re: #if directive problem - by Vince - 13.03.2013, 09:58
Re: #if directive problem - by RajatPawar - 13.03.2013, 13:15
Re: #if directive problem - by LarzI - 13.03.2013, 13:19
Re: #if directive problem - by RajatPawar - 13.03.2013, 14:15
Re: #if directive problem - by RajatPawar - 13.03.2013, 14:24
Re: #if directive problem - by RajatPawar - 13.03.2013, 14:33

Forum Jump:


Users browsing this thread: 5 Guest(s)