| 210 | } |
| 211 | |
| 212 | inline constexpr uint8_t HostOSType() noexcept { |
| 213 | #if WASMEDGE_OS_LINUX |
| 214 | return UINT8_C(1); |
| 215 | #elif WASMEDGE_OS_MACOS |
| 216 | return UINT8_C(2); |
| 217 | #elif WASMEDGE_OS_WINDOWS |
| 218 | return UINT8_C(3); |
| 219 | #else |
| 220 | // Means WasmEdge is not yet supported on this OS. |
| 221 | return UINT8_C(-1); |
| 222 | #endif |
| 223 | } |
| 224 | |
| 225 | inline constexpr uint8_t HostArchType() noexcept { |
| 226 | #if defined(__x86_64__) || defined(_M_X64) |