mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-08 13:35:36 +00:00
20 lines
354 B
C++
20 lines
354 B
C++
#include "Architecture.h"
|
|
|
|
#include <cassert>
|
|
|
|
unsigned GetPointerSizeForArchitecture(const Architecture architecture)
|
|
{
|
|
switch (architecture)
|
|
{
|
|
case Architecture::X86:
|
|
return sizeof(uint32_t);
|
|
|
|
case Architecture::X64:
|
|
return sizeof(uint64_t);
|
|
|
|
default:
|
|
assert(false);
|
|
return sizeof(uint32_t);
|
|
}
|
|
}
|