#error
#5

I told him already that #error is pre-processor directive. It cannot determine what the value of 'toggle' is at compile time, only at runtime. You might try looking at assert if you want to indicate a programmer's error, although that one doesn't always work.
Reply


Messages In This Thread
#error - by RollTi - 24.04.2012, 10:59
Re: #error - by Vince - 24.04.2012, 11:24
Re: #error - by RollTi - 24.04.2012, 11:26
Re: #error - by 2KY - 24.04.2012, 12:46
Re: #error - by Vince - 24.04.2012, 13:22
Re: #error - by Sasino97 - 24.04.2012, 14:29
Re: #error - by RollTi - 25.04.2012, 10:57

Forum Jump:


Users browsing this thread: 1 Guest(s)