mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-19 14:27:55 +08:00
21 lines
460 B
C++
21 lines
460 B
C++
|
#include "pch.h"
|
||
|
#include "version.h"
|
||
|
|
||
|
version_architecture get_current_architecture()
|
||
|
{
|
||
|
// TODO: detect ARM build with #ifdef
|
||
|
return version_architecture::x64;
|
||
|
}
|
||
|
|
||
|
const wchar_t* get_architecture_string(const version_architecture v)
|
||
|
{
|
||
|
switch (v)
|
||
|
{
|
||
|
case version_architecture::x64:
|
||
|
return L"x64";
|
||
|
case version_architecture::arm:
|
||
|
return L"arm";
|
||
|
default:
|
||
|
throw std::runtime_error("unknown architecture");
|
||
|
}
|
||
|
}
|