浏览代码

Doxygen fix

Jorrit Rouwe 3 年之前
父节点
当前提交
d47347fa50
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Jolt/Physics/Constraints/ConstraintPart/SpringPart.h

+ 2 - 0
Jolt/Physics/Constraints/ConstraintPart/SpringPart.h

@@ -4,7 +4,9 @@
 #pragma once
 #pragma once
 
 
 JPH_NAMESPACE_BEGIN
 JPH_NAMESPACE_BEGIN
+#ifndef JPH_PLATFORM_DOXYGEN // Somehow Doxygen gets confused and thinks the parameters to CalculateSpringProperties belong to this macro
 JPH_MSVC_SUPPRESS_WARNING(4723) // potential divide by 0 - caused by line: outEffectiveMass = 1.0f / inInvEffectiveMass, note that JPH_NAMESPACE_BEGIN already pushes the warning state
 JPH_MSVC_SUPPRESS_WARNING(4723) // potential divide by 0 - caused by line: outEffectiveMass = 1.0f / inInvEffectiveMass, note that JPH_NAMESPACE_BEGIN already pushes the warning state
+#endif // !JPH_PLATFORM_DOXYGEN
 
 
 /// Class used in other constraint parts to calculate the required bias factor in the lagrange multiplier for creating springs
 /// Class used in other constraint parts to calculate the required bias factor in the lagrange multiplier for creating springs
 class SpringPart
 class SpringPart