blob: 4b018d511419906aaa0c9e1da985b26acff5d025 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
 | #pragma once
#include <cru/platform/native_resource.hpp>
#include <stdexcept>
#include <string_view>
namespace cru::platform::native::win {
constexpr std::wstring_view win_platform_id = L"Windows";
inline bool IsWindowsResource(NativeResource* resource) {
  return resource->GetPlatformId() == win_platform_id;
}
}  // namespace cru::platform::native::win
#define CRU_PLATFORMID_IMPLEMENT_WIN                             \
  std::wstring_view GetPlatformId() const override {             \
    return ::cru::platform::native::win::win_platform_id; \
  }
 |