From 74bb9cd27242b9320f99ff4d2b50c3051576cc14 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 8 Feb 2022 16:53:51 +0800 Subject: ... --- include/cru/common/platform/osx/Convert.h | 17 +++++++++++++++++ include/cru/common/platform/osx/Convert.hpp | 17 ----------------- include/cru/common/platform/osx/Exception.h | 14 ++++++++++++++ include/cru/common/platform/osx/Exception.hpp | 14 -------------- 4 files changed, 31 insertions(+), 31 deletions(-) create mode 100644 include/cru/common/platform/osx/Convert.h delete mode 100644 include/cru/common/platform/osx/Convert.hpp create mode 100644 include/cru/common/platform/osx/Exception.h delete 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.h b/include/cru/common/platform/osx/Convert.h new file mode 100644 index 00000000..503576be --- /dev/null +++ b/include/cru/common/platform/osx/Convert.h @@ -0,0 +1,17 @@ +#pragma once +#include "../../PreConfig.h" +#ifdef CRU_PLATFORM_OSX + +#include "../../String.h" + +#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/Convert.hpp b/include/cru/common/platform/osx/Convert.hpp deleted file mode 100644 index a2d8beae..00000000 --- a/include/cru/common/platform/osx/Convert.hpp +++ /dev/null @@ -1,17 +0,0 @@ -#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.h b/include/cru/common/platform/osx/Exception.h new file mode 100644 index 00000000..53e874e9 --- /dev/null +++ b/include/cru/common/platform/osx/Exception.h @@ -0,0 +1,14 @@ +#pragma once +#include "../../PreConfig.h" +#ifdef CRU_PLATFORM_OSX + +#include "../Exception.h" + +namespace cru::platform::osx { +class OsxException : public PlatformException { + public: + using PlatformException::PlatformException; +}; +} // namespace cru::platform::osx + +#endif diff --git a/include/cru/common/platform/osx/Exception.hpp b/include/cru/common/platform/osx/Exception.hpp deleted file mode 100644 index 49527c69..00000000 --- a/include/cru/common/platform/osx/Exception.hpp +++ /dev/null @@ -1,14 +0,0 @@ -#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