MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/TriangleMeshDistance / enforceOk

Method enforceOk

tests/catch.hpp:6906–6914  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6904
6905 protected:
6906 void enforceOk() const override {
6907
6908 // Errors shouldn't reach this point, but if they do
6909 // the actual error message will be in m_errorMessage
6910 assert( m_type != ResultBase::LogicError );
6911 assert( m_type != ResultBase::RuntimeError );
6912 if( m_type != ResultBase::Ok )
6913 std::abort();
6914 }
6915
6916 std::string m_errorMessage; // Only populated if resultType is an error
6917

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected