
Whitespace in macro arguments either needs quoting / parenthesizing to reliably not be mistaken for an argument separator, or respective macro parameters need to be marked as covering all remaining arguments. The former appears more appropriate here, as the macro parameters already have ":req".
15 lines
167 B
ArmAsm
15 lines
167 B
ArmAsm
.macro sym n:req
|
|
.if \n
|
|
.globl bar\@
|
|
.type bar\@, @function
|
|
bar\@ :
|
|
.insn
|
|
.hword 0
|
|
.size bar\@, . - bar\@
|
|
sym (\n - 1)
|
|
.endif
|
|
.endm
|
|
|
|
.text
|
|
.align 4
|
|
sym 8
|