blob: e1899ad4f9c206e0e7a5099b15ef51c92cfc2039 (
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; \
}
|