02-26-2013, 04:16 PM
Trying to compile the following code:
Produces the following error message:
This bug is relevant because BIFROST* interface library for ZX BASIC makes extensive use of defines as above, for performance reasons. I'm sure this is not the only case. Therefore I'm concerned about users getting confused by weird errors like this.
Code:
#define BIFROSTstop() \
asm \
call 65012 \
end asm
10 PAUSE 0 : BIFROSTstop() : PAUSE 0
Quote:illegal character ':'However the following code compiles just fine:
Code:
#define BIFROSTstop() \
asm \
call 65012 \
end asm
10 PAUSE 0 : BIFROSTstop()
PAUSE 0