ToyGine2 26.2.0
Game Engine for retro consoles
Loading...
Searching...
No Matches
platform.hpp File Reference

Platform and CPU architecture enums with compile-time and runtime detection. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  toy
 Root namespace containing all engine modules.

Enumerations

enum class  toy::Platform : uint16_t {
  toy::Windows = 0x1000 , toy::Linux = 0x2000 , toy::macOS = 0x3000 , toy::iOS = 0x3100 ,
  toy::Android = 0x4000 , toy::GBA = 0x5000 , toy::NDS = 0x6000 , toy::N3DS = 0x7000 ,
  toy::Switch = 0x8000
}
 Target operating system or platform identifier. More...
enum class  toy::CpuArchitecture : uint16_t {
  toy::x86 = 0x0014 , toy::x64 = 0x0018 , toy::Arm32 = 0x0024 , toy::Arm64 = 0x0028 ,
  toy::Unknown = 0x0000
}
 CPU or instruction-set architecture identifier. More...

Detailed Description

Platform and CPU architecture enums with compile-time and runtime detection.

Defines toy::Platform (OS/target) and toy::CpuArchitecture (ISA). Values use distinct hex ranges for conditional compilation; use getCurrentPlatform() and getCurrentArchitecture() for runtime detection.

Note
Included by core.hpp; do not include this file directly.