Browse Source

Document GLM_FORCE_UNRESTRICTED_GENTYPE and generate an error if both GLM_FORCE_SWIZZLE and GLM_FORCE_UNRESTRICTED_GENTYPE are defined at the same time

Christophe Riccio 9 years ago
parent
commit
8bfefbd1ce
3 changed files with 4 additions and 0 deletions
  1. BIN
      doc/glm.docx
  2. BIN
      doc/glm.pdf
  3. 4 0
      glm/detail/setup.hpp

BIN
doc/glm.docx


BIN
doc/glm.pdf


+ 4 - 0
glm/detail/setup.hpp

@@ -3,6 +3,10 @@
 
 #pragma once
 
+#if defined(GLM_FORCE_SWIZZLE) && defined(GLM_FORCE_UNRESTRICTED_GENTYPE)
+#	error "Both GLM_FORCE_SWIZZLE and GLM_FORCE_UNRESTRICTED_GENTYPE can't be defined at the same time"
+#endif
+
 ///////////////////////////////////////////////////////////////////////////////////
 // Messages