2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-05-02 00:19:35 +00:00
Files
OpenAssetTools/src/ZoneCodeGeneratorLib/Domain/Environment/WordSize.cpp
T
2026-04-30 13:50:11 +01:00

20 lines
334 B
C++

#include "WordSize.h"
#include <cassert>
unsigned GetPointerSizeForWordSize(const WordSize wordSize)
{
switch (wordSize)
{
case WordSize::BITS_32:
return sizeof(uint32_t);
case WordSize::BITS_64:
return sizeof(uint64_t);
default:
assert(false);
return sizeof(uint32_t);
}
}