x64Emitter: Remove unused macros

No users, and one them seems to do the same as stddef.h's offsetof()
already used elsewhere.
This commit is contained in:
Sintendo 2020-01-13 00:15:10 +01:00
parent f82c38e156
commit bdcdd763fe
1 changed files with 0 additions and 5 deletions

View File

@ -313,11 +313,6 @@ inline u32 PtrOffset(const void* ptr, const void* base = nullptr)
return (u32)distance;
}
// usage: int a[]; ARRAY_OFFSET(a,10)
#define ARRAY_OFFSET(array, index) ((u32)((u64) & (array)[index] - (u64) & (array)[0]))
// usage: struct {int e;} s; STRUCT_OFFSET(s,e)
#define STRUCT_OFFSET(str, elem) ((u32)((u64) & (str).elem - (u64) & (str)))
struct FixupBranch
{
enum class Type