Hi,
I'm trying to create include file. I need way to create conditional compile based on whether variable is defined or not in main file.
Something like this:
If variable is all ready defined, it won't compile just show error:Bad defined value
If variable isn't defined then I got syntax error.
For this, if variable isn't define, it's ok, but if is defined then I get Bad defined value.
Is there way to do that?
I'm trying to create include file. I need way to create conditional compile based on whether variable is defined or not in main file.
Something like this:
Code:
#IFNDEF TmpB
TmpB VAR BYTE
#ENDIF
If variable isn't defined then I got syntax error.
Code:
#IFDEF Counter2
Counter2=Counter2+1
#ENDIF
Is there way to do that?