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

Function error_handler

tutorials/common/tutorial/tutorial.cpp:78–92  ·  view source on GitHub ↗

error reporting function */

Source from the content-addressed store, hash-verified

76
77 /* error reporting function */
78 void error_handler(void* userPtr, const RTCError code, const char* str)
79 {
80 if (code == RTC_ERROR_NONE)
81 return;
82
83 printf("Embree: %s", rtcGetErrorString(code));
84 if (str) {
85 printf(" (");
86 while (*str) putchar(*str++);
87 printf(")\n");
88 } else {
89 printf("\n");
90 }
91 exit(1);
92 }
93
94 TutorialApplication* TutorialApplication::instance = nullptr;
95

Callers 1

create_deviceMethod · 0.70

Calls 1

rtcGetErrorStringFunction · 0.85

Tested by

no test coverage detected