Commited Cyrille Bagard patch to SWAP macro

This commit is contained in:
yabause 2006-12-26 21:07:39 +00:00
parent f1f3c38c42
commit 15d890bcd3
1 changed files with 7 additions and 3 deletions

View File

@ -29,9 +29,13 @@
armcpu_t NDS_ARM7;
armcpu_t NDS_ARM9;
#define SWAP(a, b, c) c=a;\
#define SWAP(a, b, c) do \
{ \
c=a; \
a=b; \
b=c;
b=c; \
} \
while(0)
int armcpu_new(armcpu_t *armcpu, u32 id)
{