Bläddra i källkod

Added platform unknown test

Christophe Riccio 7 år sedan
förälder
incheckning
b1c2cc64fd
3 ändrade filer med 12 tillägg och 1 borttagningar
  1. 1 1
      manual.md
  2. 1 0
      test/core/CMakeLists.txt
  3. 10 0
      test/core/core_setup_platform_unknown.cpp

+ 1 - 1
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.
 
-### <a name="section2_2"></a> 2.2. GLM_\FORCE\_PLATFORM\_UNKNOWN: Force GLM to no detect the build platform
+### <a name="section2_2"></a> 2.2. GLM\_FORCE\_PLATFORM\_UNKNOWN: Force GLM to no detect the build platform
 
 TODO
 

+ 1 - 0
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)

+ 10 - 0
test/core/core_setup_platform_unknown.cpp

@@ -0,0 +1,10 @@
+#define GLM_FORCE_PLATFORM_UNKNOWN
+#include <glm/glm.hpp>
+#include <glm/ext.hpp>
+
+int main()
+{
+	int Error = 0;
+
+	return Error;
+}