porting cpp code with build if-else to run if-else...
# codereview
e
porting cpp code with build if-else to run if-else, would you rewrite this
Copy code
#ifdef USE_SEPDISTANCE_UTIL2
	if (dispatchInfo.m_useConvexConservativeDistanceUtil) 	{
		input.m_maximumDistanceSquared = BT_LARGE_FLOAT;
	} else
#endif //USE_SEPDISTANCE_UTIL2
	{
		input.m_maximumDistanceSquared = min0->getMargin() + min1->getMargin() + m_manifoldPtr->getContactBreakingThreshold()+resultOut->m_closestPointDistanceThreshold;
		input.m_maximumDistanceSquared*= input.m_maximumDistanceSquared;
	}`
as
Copy code
if (USE_SEPDISTANCE_UTIL2 && dispatchInfo.useConvexConservativeDistanceUtil)
                input.maximumDistanceSquared = LARGE_FLOAT
            else if (!USE_SEPDISTANCE_UTIL2)
?