MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / HostOSType

Function HostOSType

lib/loader/ast/section.cpp:212–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212inline 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
225inline constexpr uint8_t HostArchType() noexcept {
226#if defined(__x86_64__) || defined(_M_X64)

Callers 1

section.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected