summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2019-01-23 06:17:08 +0000
committerEgor Yusov <egor.yusov@gmail.com>2019-01-23 06:17:08 +0000
commit58a2ecf2b9c01698c3bb1db10e9b5ed52ce91b61 (patch)
treecf61e32c329c3d4a5669d1607180ac0b5fc068b1
parentMoved math utils to Diligent namespace (diff)
downloadDiligentCore-58a2ecf2b9c01698c3bb1db10e9b5ed52ce91b61.tar.gz
DiligentCore-58a2ecf2b9c01698c3bb1db10e9b5ed52ce91b61.zip
Improved error message about unknown platform
-rw-r--r--Platforms/interface/FileSystem.h2
-rw-r--r--Platforms/interface/PlatformDebug.h2
-rw-r--r--Platforms/interface/PlatformDefinitions.h4
-rw-r--r--Platforms/interface/PlatformMisc.h2
4 files changed, 5 insertions, 5 deletions
diff --git a/Platforms/interface/FileSystem.h b/Platforms/interface/FileSystem.h
index fccd913f..d606429a 100644
--- a/Platforms/interface/FileSystem.h
+++ b/Platforms/interface/FileSystem.h
@@ -57,6 +57,6 @@
#else
- #error Unsupported platform
+ #error Unknown platform. Please define one of the following macros as 1: PLATFORM_WIN32, PLATFORM_UNIVERSAL_WINDOWS, PLATFORM_ANDROID, PLATFORM_LINUX, PLATFORM_MACOS, PLATFORM_IOS.
#endif
diff --git a/Platforms/interface/PlatformDebug.h b/Platforms/interface/PlatformDebug.h
index 502bf901..d536b878 100644
--- a/Platforms/interface/PlatformDebug.h
+++ b/Platforms/interface/PlatformDebug.h
@@ -46,5 +46,5 @@
typedef AppleDebug PlatformDebug;
#else
- #error Unsupported platform
+ #error Unknown platform. Please define one of the following macros as 1: PLATFORM_WIN32, PLATFORM_UNIVERSAL_WINDOWS, PLATFORM_ANDROID, PLATFORM_LINUX, PLATFORM_MACOS, PLATFORM_IOS.
#endif
diff --git a/Platforms/interface/PlatformDefinitions.h b/Platforms/interface/PlatformDefinitions.h
index 2e8113ab..5d79fa83 100644
--- a/Platforms/interface/PlatformDefinitions.h
+++ b/Platforms/interface/PlatformDefinitions.h
@@ -30,12 +30,12 @@
#endif
#if !PLATFORM_WIN32 && !PLATFORM_UNIVERSAL_WINDOWS && !PLATFORM_ANDROID && !PLATFORM_LINUX && !PLATFORM_MACOS && !PLATFORM_IOS
- #error Platform is not defined
+ #error Unknown platform. Please define one of the following macros as 1: PLATFORM_WIN32, PLATFORM_UNIVERSAL_WINDOWS, PLATFORM_ANDROID, PLATFORM_LINUX, PLATFORM_MACOS, PLATFORM_IOS.
#endif
#if !D3D11_SUPPORTED && !D3D12_SUPPORTED && !GL_SUPPORTED && !GLES_SUPPORTED && !VULKAN_SUPPORTED && !METAL_SUPPORTED
- #error No API is supported on this platform. Did you define at least one of D3D11_SUPPORTED, D3D12_SUPPORTED, GL_SUPPORTED, GLES_SUPPORTED, VULKAN_SUPPORTED, or METAL_SUPPORTED macros as 1?
+ #error No API is supported on this platform. At least one of D3D11_SUPPORTED, D3D12_SUPPORTED, GL_SUPPORTED, GLES_SUPPORTED, VULKAN_SUPPORTED, or METAL_SUPPORTED macros must be defined as 1.
#endif
#if PLATFORM_WIN32
diff --git a/Platforms/interface/PlatformMisc.h b/Platforms/interface/PlatformMisc.h
index f7e239e7..4c2c16a4 100644
--- a/Platforms/interface/PlatformMisc.h
+++ b/Platforms/interface/PlatformMisc.h
@@ -43,6 +43,6 @@
#else
- #error Unsupported platform
+ #error Unknown platform. Please define one of the following macros as 1: PLATFORM_WIN32, PLATFORM_UNIVERSAL_WINDOWS, PLATFORM_ANDROID, PLATFORM_LINUX, PLATFORM_MACOS, PLATFORM_IOS.
#endif