MCPcopy Create free account
hub / github.com/RenderKit/embree / AssertError

Function AssertError

tutorials/verify/verify.cpp:80–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78 }
79
80 void AssertError(RTCDevice device, RTCError expectedError)
81 {
82 RTCError error = rtcGetDeviceError(device);
83 if (error != expectedError)
84 throw std::runtime_error("Error "+string_of(expectedError)+" expected");
85 }
86
87 typedef SceneGraph::TriangleMeshNode::Triangle Triangle;
88

Callers 1

runMethod · 0.85

Calls 2

rtcGetDeviceErrorFunction · 0.85
string_ofFunction · 0.85

Tested by

no test coverage detected