|
@@ -412,7 +412,7 @@ Body *BodyManager::RemoveBodyInternal(const BodyID &inBodyID)
|
|
|
return body;
|
|
|
}
|
|
|
|
|
|
-#if defined(_DEBUG) && defined(JPH_ENABLE_ASSERTS)
|
|
|
+#if defined(JPH_DEBUG) && defined(JPH_ENABLE_ASSERTS)
|
|
|
|
|
|
void BodyManager::ValidateFreeList() const
|
|
|
{
|
|
@@ -426,7 +426,7 @@ void BodyManager::ValidateFreeList() const
|
|
|
JPH_ASSERT(mNumBodies == mBodies.size() - num_freed);
|
|
|
}
|
|
|
|
|
|
-#endif // defined(_DEBUG) && _defined(JPH_ENABLE_ASSERTS)
|
|
|
+#endif // defined(JPH_DEBUG) && _defined(JPH_ENABLE_ASSERTS)
|
|
|
|
|
|
void BodyManager::RemoveBodies(const BodyID *inBodyIDs, int inNumber, Body **outBodies)
|
|
|
{
|
|
@@ -456,9 +456,9 @@ void BodyManager::RemoveBodies(const BodyID *inBodyIDs, int inNumber, Body **out
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-#if defined(_DEBUG) && defined(JPH_ENABLE_ASSERTS)
|
|
|
+#if defined(JPH_DEBUG) && defined(JPH_ENABLE_ASSERTS)
|
|
|
ValidateFreeList();
|
|
|
-#endif // defined(_DEBUG) && _defined(JPH_ENABLE_ASSERTS)
|
|
|
+#endif // defined(JPH_DEBUG) && _defined(JPH_ENABLE_ASSERTS)
|
|
|
}
|
|
|
|
|
|
void BodyManager::DestroyBodies(const BodyID *inBodyIDs, int inNumber)
|
|
@@ -482,9 +482,9 @@ void BodyManager::DestroyBodies(const BodyID *inBodyIDs, int inNumber)
|
|
|
sDeleteBody(body);
|
|
|
}
|
|
|
|
|
|
-#if defined(_DEBUG) && defined(JPH_ENABLE_ASSERTS)
|
|
|
+#if defined(JPH_DEBUG) && defined(JPH_ENABLE_ASSERTS)
|
|
|
ValidateFreeList();
|
|
|
-#endif // defined(_DEBUG) && _defined(JPH_ENABLE_ASSERTS)
|
|
|
+#endif // defined(JPH_DEBUG) && _defined(JPH_ENABLE_ASSERTS)
|
|
|
}
|
|
|
|
|
|
void BodyManager::AddBodyToActiveBodies(Body &ioBody)
|
|
@@ -1130,7 +1130,7 @@ void BodyManager::ValidateContactCacheForAllBodies()
|
|
|
mBodiesCacheInvalid.clear();
|
|
|
}
|
|
|
|
|
|
-#ifdef _DEBUG
|
|
|
+#ifdef JPH_DEBUG
|
|
|
void BodyManager::ValidateActiveBodyBounds()
|
|
|
{
|
|
|
UniqueLock lock(mActiveBodiesMutex JPH_IF_ENABLE_ASSERTS(, this, EPhysicsLockTypes::ActiveBodiesList));
|
|
@@ -1144,6 +1144,6 @@ void BodyManager::ValidateActiveBodyBounds()
|
|
|
JPH_ASSERT(cached == calculated);
|
|
|
}
|
|
|
}
|
|
|
-#endif // _DEBUG
|
|
|
+#endif // JPH_DEBUG
|
|
|
|
|
|
JPH_NAMESPACE_END
|