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

Function error_handler

tutorials/verify/rtcore_helpers.h:879–889  ·  view source on GitHub ↗

error reporting function */

Source from the content-addressed store, hash-verified

877
878 /* error reporting function */
879 void error_handler(void* userPtr, const RTCError code, const char* str = nullptr)
880 {
881 if (code == RTC_ERROR_NONE)
882 return;
883
884 std::string errorStr;
885 errorStr += "Embree: ";
886 errorStr += string_of(code);
887 if (str) errorStr += " (" + std::string(str) + ")";
888 throw std::runtime_error(errorStr);
889 }
890}
891

Callers

nothing calls this directly

Calls 1

string_ofFunction · 0.85

Tested by

no test coverage detected