瀏覽代碼

Fixed Doxygen warnings

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.
 # This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
 
 
 PREDEFINED             = _WIN32 \
 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
 # 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
 # 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
 #pragma once
 
 
+#ifdef JPH_USE_AVX2
+
 #include <Jolt/Core/HashCombine.h>
 #include <Jolt/Core/HashCombine.h>
 
 
 // Create a std::hash for DVec3
 // Create a std::hash for DVec3
@@ -275,3 +277,5 @@ DVec3 DVec3::GetSign() const
 }
 }
 
 
 JPH_NAMESPACE_END
 JPH_NAMESPACE_END
+
+#endif // JPH_USE_AVX2

+ 5 - 0
Jolt/Math/Matrix.h

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