Jorrit Rouwe 3 роки тому
батько
коміт
4a2fa832ea
3 змінених файлів з 11 додано та 1 видалено
  1. 2 1
      Doxyfile
  2. 4 0
      Jolt/Math/DVec3.inl
  3. 5 0
      Jolt/Math/Matrix.h

+ 2 - 1
Doxyfile

@@ -2296,7 +2296,8 @@ INCLUDE_FILE_PATTERNS  =
 # This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
 
 PREDEFINED             = _WIN32 \
-                         JPH_PROFILE_ENABLED
+                         JPH_PROFILE_ENABLED \
+						 JPH_PLATFORM_DOXYGEN
 
 # If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
 # tag can be used to specify a list of macro names that should be expanded. The

+ 4 - 0
Jolt/Math/DVec3.inl

@@ -3,6 +3,8 @@
 
 #pragma once
 
+#ifdef JPH_USE_AVX2
+
 #include <Jolt/Core/HashCombine.h>
 
 // Create a std::hash for DVec3
@@ -275,3 +277,5 @@ DVec3 DVec3::GetSign() const
 }
 
 JPH_NAMESPACE_END
+
+#endif // JPH_USE_AVX2

+ 5 - 0
Jolt/Math/Matrix.h

@@ -227,6 +227,9 @@ public:
 	Vector<Rows>							mCol[Cols];									///< Column
 };
 
+// The template specialization doesn't sit well with Doxygen
+#ifndef JPH_PLATFORM_DOXYGEN
+
 /// Specialization of SetInversed for 2x2 matrix
 template <>
 inline bool Matrix<2, 2>::SetInversed(const Matrix<2, 2> &inM)
@@ -250,4 +253,6 @@ inline bool Matrix<2, 2>::SetInversed(const Matrix<2, 2> &inM)
 	return true;
 }
 
+#endif // !JPH_PLATFORM_DOXYGEN
+
 JPH_NAMESPACE_END