I have a macro which creates labels, but I only want to create those labels if they aren't already defined. The problem is that the label is built using a macro argument, and the assembler doesn't like symbols generated using macro arguments. This is the code that doesn't work. It errors out on the ifndef. Is there any other way to write this?
.macro create_handler modifier
.ifndef handler\modifier
handler\modifier:
some code
some more code
.endif
.endif
Error: junk at end of line, first unrecognized character is `\'