From 2ed65999ef6f3e1156427dd3efe04353ae657882 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 25 Jan 2022 17:30:46 +0800 Subject: ... --- include/cru/common/platform/osx/Convert.hpp | 17 +++++++++++++++++ include/cru/common/platform/osx/Exception.hpp | 14 ++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 include/cru/common/platform/osx/Convert.hpp create mode 100644 include/cru/common/platform/osx/Exception.hpp (limited to 'include/cru/common/platform/osx') diff --git a/include/cru/common/platform/osx/Convert.hpp b/include/cru/common/platform/osx/Convert.hpp new file mode 100644 index 00000000..a583e8da --- /dev/null +++ b/include/cru/common/platform/osx/Convert.hpp @@ -0,0 +1,17 @@ +#pragma once +#include "../../PreConfig.hpp" +#ifdef CRU_PLATFORM_OSX + +#include "../../String.hpp" + +#include + +namespace cru::platform::osx { +CFStringRef Convert(const String& string); +String Convert(CFStringRef string); + +CFRange Convert(const Range& range); +Range Convert(const CFRange& range); +} // namespace cru::platform::osx + +#endif diff --git a/include/cru/common/platform/osx/Exception.hpp b/include/cru/common/platform/osx/Exception.hpp new file mode 100644 index 00000000..49527c69 --- /dev/null +++ b/include/cru/common/platform/osx/Exception.hpp @@ -0,0 +1,14 @@ +#pragma once +#include "../../PreConfig.hpp" +#ifdef CRU_PLATFORM_OSX + +#include "../Exception.hpp" + +namespace cru::platform::osx { +class OsxException : public PlatformException { + public: + using PlatformException::PlatformException; +}; +} // namespace cru::platform::osx + +#endif -- cgit v1.2.3