Update naked attribute and ASM_DIRECT to NAKED macro
This commit is contained in:
1 parent
4e2886db81
commit
23b050a99e
23 files changed
+44
-44
No files matched your search
+1
-1
@@ -353,7 +353,7 @@ static u8 InitFieldObjectStateFromTemplate(struct MapObjectTemplate *template, u
|
||||
return slot;
|
||||
}
|
||||
#else
|
||||
static __attribute__((naked)) u8 InitFieldObjectStateFromTemplate(struct MapObjectTemplate *template, u8 mapId, u8 mapGroupId)
|
||||
static NAKED u8 InitFieldObjectStateFromTemplate(struct MapObjectTemplate *template, u8 mapId, u8 mapGroupId)
|
||||
{
|
||||
asm_unified("\tpush {r4-r7,lr}\n"
|
||||
"\tmov r7, r9\n"
|
||||
|
||||
Reference in new issue
Block a user