
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
169 B
ArmAsm
15 lines
169 B
ArmAsm
.macro sym n:req
|
|
.if \n
|
|
.globl bar\@
|
|
.type bar\@, @object
|
|
bar\@ :
|
|
.byte 0
|
|
.size bar\@, . - bar\@
|
|
sym (\n - 1)
|
|
.endif
|
|
.endm
|
|
|
|
.data
|
|
.align 4
|
|
.space 32
|
|
sym 16
|