Răsfoiți Sursa

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 ani în urmă
părinte
comite
8bfefbd1ce
3 a modificat fișierele cu 4 adăugiri și 0 ștergeri
  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