2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-05-02 08:29:36 +00:00

refactor(zcg): use wordsize instead of architecture

This commit is contained in:
Michael Oliver
2026-04-30 13:48:32 +01:00
parent abfc2dc547
commit 97591f59f4
30 changed files with 170 additions and 173 deletions
@@ -0,0 +1,20 @@
#pragma once
#include <cstdint>
enum class WordSize : std::uint8_t
{
UNKNOWN,
BITS_32,
BITS_64
};
static constexpr WordSize OWN_WORD_SIZE =
#if defined(ARCH_x86)
WordSize::BITS_32
#elif defined(ARCH_x64)
WordSize::BITS_64
#endif
;
extern unsigned GetPointerSizeForWordSize(WordSize wordSize);