From 58a2ecf2b9c01698c3bb1db10e9b5ed52ce91b61 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Tue, 22 Jan 2019 22:17:08 -0800 Subject: Improved error message about unknown platform --- Platforms/interface/FileSystem.h | 2 +- Platforms/interface/PlatformDebug.h | 2 +- Platforms/interface/PlatformDefinitions.h | 4 ++-- Platforms/interface/PlatformMisc.h | 2 +- 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 -- cgit v1.2.3