[cc65] Another bug, with preprocessor macros

Date view Thread view Subject view

From: David Holz (davidh_at_otterspace.com)
Date: 2003-07-13 08:26:24


.ifdef, .ifndef, .def, and .defined all seem to throw a "Error #24:
Identifier expected" when the macro is already defined, ie:

.define BLAH
.ifndef BLAH  ; <- error gets tossed here
.define BLAH
.endif

The same error gets thrown when you try to redefine a macro, instead of a
"Identifier already in use" type of message.

I'd guess that this stems from the macro being expanded too soon (".ifndef
BLAH" becomes ".ifndef " in the above case), instead of working on the raw
label name.

Any chance of there being an .undef command, too? :)

(/me goes back to coding...)

-- 
White Flame (aka David Holz)
http://www.white-flame.com/

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-07-13 08:17:38 CEST