mirror of
https://github.com/zeldaret/ph
synced 2026-06-14 06:13:56 -04:00
Update NONMATCH macro
This commit is contained in:
+5
-3
@@ -4,13 +4,15 @@
|
||||
#define NULL 0
|
||||
|
||||
#define GET_FLAG(arr, pos) (((1 << ((pos) & 0x1f)) & (arr)[((u32)(pos)) >> 5]) != 0)
|
||||
#define SET_FLAG(arr, pos) ((arr)[((u32(pos))) >> 5] |= 1 << ((pos) & 0x1f))
|
||||
#define SET_FLAG(arr, pos) ((arr)[((u32)(pos)) >> 5] |= 1 << ((pos) & 0x1f))
|
||||
#define RESET_FLAG(arr, pos) ((arr)[((u32)(pos)) >> 5] &= ~(1 << ((pos) & 0x1f)))
|
||||
|
||||
// NONMATCH(name) marks the function `name` as nonmatching
|
||||
// The reason for the macro is to easily detect it in progress.py
|
||||
#ifdef NONMATCHING
|
||||
#define NONMATCH
|
||||
#define NONMATCH(name) name
|
||||
#else
|
||||
#define NONMATCH asm
|
||||
#define NONMATCH(name) asm name
|
||||
#endif
|
||||
|
||||
// Prevent the IDE from reporting errors that the compiler/linker won't report
|
||||
|
||||
+1
-1
@@ -241,7 +241,7 @@ extern unk32 data_027e0fc8;
|
||||
extern "C" bool func_ov00_020bbd80(unk32 param1, unk32 param2);
|
||||
extern "C" bool _ZNK11ItemManager7HasItemEi();
|
||||
extern "C" void _ZN11ItemManager12GetEquipItemEi();
|
||||
ARM NONMATCH bool ItemManager::func_ov00_020ad790(unk32 param1) {
|
||||
ARM bool NONMATCH(ItemManager::func_ov00_020ad790)(unk32 param1) {
|
||||
#ifndef NONMATCHING
|
||||
#include "../asm/ov00/ItemManager/ItemManager_func_ov00_020ad790.inc"
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user