From b1c2cc64fde2f7e5c6fe9833669331a084214e51 Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Wed, 22 Aug 2018 21:21:00 +0200 Subject: [PATCH] Added platform unknown test --- manual.md | 2 +- test/core/CMakeLists.txt | 1 + test/core/core_setup_platform_unknown.cpp | 10 ++++++++++ 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 test/core/core_setup_platform_unknown.cpp diff --git a/manual.md b/manual.md index 69661bd2..2de6e7a9 100644 --- a/manual.md +++ b/manual.md @@ -289,7 +289,7 @@ GLM: GLM_FORCE_LEFT_HANDED is undefined. Using right handed coordinate system. The following subsections describe each configurations and defines. -### 2.2. GLM_\FORCE\_PLATFORM\_UNKNOWN: Force GLM to no detect the build platform +### 2.2. GLM\_FORCE\_PLATFORM\_UNKNOWN: Force GLM to no detect the build platform TODO diff --git a/test/core/CMakeLists.txt b/test/core/CMakeLists.txt index 0af7fe29..a1f1d0ff 100644 --- a/test/core/CMakeLists.txt +++ b/test/core/CMakeLists.txt @@ -41,4 +41,5 @@ glmCreateTestGTC(core_func_swizzle) glmCreateTestGTC(core_setup_force_cxx98) glmCreateTestGTC(core_setup_force_size_t_length) glmCreateTestGTC(core_setup_message) +glmCreateTestGTC(core_setup_platform_unknown) glmCreateTestGTC(core_setup_precision) diff --git a/test/core/core_setup_platform_unknown.cpp b/test/core/core_setup_platform_unknown.cpp new file mode 100644 index 00000000..f010669d --- /dev/null +++ b/test/core/core_setup_platform_unknown.cpp @@ -0,0 +1,10 @@ +#define GLM_FORCE_PLATFORM_UNKNOWN +#include +#include + +int main() +{ + int Error = 0; + + return Error; +}