PhilHornby
Senior Member
The following code gives an error:-
"Syntax error on line 2 at position 1
Error: 1 is not a numeric value, try #IFDEF instead of #IF?"
It turned out to be caused by whitespace after the "1". For presumably the same reason, it won't allow ;comments or 'comments after the #define statement either - which is a pity.
Code:
[COLOR=Navy]#define [/COLOR][COLOR=Black]weird [/COLOR][COLOR=Navy]1
#if [/COLOR][COLOR=Black]weird [/COLOR][COLOR=DarkCyan]= [/COLOR][COLOR=Navy]1
[/COLOR][COLOR=Green];some statement or other[/COLOR]
[COLOR=Navy]#endif[/COLOR]
Error: 1 is not a numeric value, try #IFDEF instead of #IF?"
It turned out to be caused by whitespace after the "1". For presumably the same reason, it won't allow ;comments or 'comments after the #define statement either - which is a pity.