Added macro to throw an exception but not log it. Useful in some high-performance scenarios.
This commit is contained in:
@@ -199,8 +199,8 @@ namespace PolyVox
|
||||
}
|
||||
default:
|
||||
{
|
||||
//Should never happen
|
||||
POLYVOX_THROW(std::invalid_argument, "Wrap mode parameter has an unrecognised value.");
|
||||
//Should never happen. We don't log because this hurts performance (preventing inlining?).
|
||||
POLYVOX_THROW_DONT_LOG(std::invalid_argument, "Wrap mode parameter has an unrecognised value.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user