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

Function AssertAnyError

tutorials/verify/verify.cpp:73–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71 }
72
73 void AssertAnyError(RTCDevice device)
74 {
75 RTCError error = rtcGetDeviceError(device);
76 if (error == RTC_ERROR_NONE)
77 throw std::runtime_error("Any error expected");
78 }
79
80 void AssertError(RTCDevice device, RTCError expectedError)
81 {

Callers

nothing calls this directly

Calls 1

rtcGetDeviceErrorFunction · 0.85

Tested by

no test coverage detected