| 170 | } |
| 171 | |
| 172 | int getCurrentProcessArchitecture() noexcept { |
| 173 | #if defined(__aarch64__) || defined(__arm64__) || defined (_M_ARM64) |
| 174 | return Architecture::ARCH_AARCH64; |
| 175 | #elif defined(__arm__) || defined(_M_ARM) |
| 176 | return Architecture::ARCH_ARM; |
| 177 | #elif defined(__x86_64__) || defined(__amd64__) |
| 178 | return Architecture::ARCH_X86_64; |
| 179 | #elif defined(__x86__) || defined(__i386__) || defined(_M_IX86) |
| 180 | return Architecture::ARCH_X86; |
| 181 | #else |
| 182 | #error "Unsupported architecture" |
| 183 | #endif |
| 184 | } |
| 185 | |
| 186 | } |
nothing calls this directly
no outgoing calls
no test coverage detected