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:
@@ -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);
|
||||
Reference in New Issue
Block a user