ro37bis
- 8th July 2011, 12:25
Hi guys,
I need some conditional compilation.
Normally I use the @ifdef, @ifndef ... @endif statements to enable or disable some code and it works.
But if I need to switch some Variabile declaration like:
@ ifdef Devboard
EnterKey VAR Key.0
StopKey VAR Key.1
StartKey VAR Key.2
@ else
EnterKey VAR Key.2
StopKey VAR Key.0
StartKey VAR Key.1
@ endif
I obtain the error message: variable already an alias
for each duplicate variable declaration line.
There is another way to obtain the conditional change of assignment?
Thk you
Roberto
I need some conditional compilation.
Normally I use the @ifdef, @ifndef ... @endif statements to enable or disable some code and it works.
But if I need to switch some Variabile declaration like:
@ ifdef Devboard
EnterKey VAR Key.0
StopKey VAR Key.1
StartKey VAR Key.2
@ else
EnterKey VAR Key.2
StopKey VAR Key.0
StartKey VAR Key.1
@ endif
I obtain the error message: variable already an alias
for each duplicate variable declaration line.
There is another way to obtain the conditional change of assignment?
Thk you
Roberto