Two tokens that don't together form a vaid preprocssor token cannot be
pasted together using ANSI-C token concatinatation. GCC's cpp, at least, produces the desired result w/o using "##".
This commit is contained in:
parent
f97c9694e2
commit
0934a65cb4
@ -136,7 +136,7 @@
|
||||
_ALIGN_DATA ; \
|
||||
.globl name ; \
|
||||
.type name, @object ; \
|
||||
name ## :
|
||||
name:
|
||||
|
||||
#define EMPTY
|
||||
|
||||
@ -145,7 +145,7 @@ name ## :
|
||||
_ALIGN_TEXT ; \
|
||||
.globl name ; \
|
||||
.type name, @function ; \
|
||||
name ## :
|
||||
name:
|
||||
|
||||
#define END(name) \
|
||||
.size name, . - name
|
||||
|
@ -55,11 +55,11 @@
|
||||
*/
|
||||
#define ATR(desc, r1, r2, r3, l1, l2) \
|
||||
.sect .rodata ; \
|
||||
l1 ## : .asciz desc ; \
|
||||
l1: .asciz desc ; \
|
||||
.previous ; \
|
||||
SET(ktr_idx, r2, r1) ; \
|
||||
lduw [r1], r2 ; \
|
||||
l2 ## : add r2, 1, r3 ; \
|
||||
l2: add r2, 1, r3 ; \
|
||||
set KTR_ENTRIES - 1, r1 ; \
|
||||
and r3, r1, r3 ; \
|
||||
set ktr_idx, r1 ; \
|
||||
|
Loading…
x
Reference in New Issue
Block a user