Added macro to throw an exception but not log it. Useful in some high-performance scenarios.

This commit is contained in:
Daviw Williams
2013-05-27 15:09:43 +02:00
parent 0c7002a1ce
commit de8c69456f
5 changed files with 21 additions and 8 deletions

View File

@@ -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.");
}
}
}