MCPcopy Create free account
hub / github.com/RenderKit/ospray / ospDeviceSetErrorCallback

Function ospDeviceSetErrorCallback

ospray/api/API.cpp:257–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255OSPRAY_CATCH_END()
256
257extern "C" void ospDeviceSetErrorCallback(OSPDevice _object,
258 OSPErrorCallback callback,
259 void *userData) OSPRAY_CATCH_BEGIN
260{
261 THROW_IF_NULL_OBJECT(_object);
262
263 auto *device = (Device *)_object;
264 if (callback == nullptr) {
265 device->error_fcn = [](void *, OSPError, const char *) {};
266 device->errorUserData = nullptr;
267 } else {
268 device->error_fcn = callback;
269 device->errorUserData = userData;
270 }
271}
272OSPRAY_CATCH_END()
273
274extern "C" OSPError ospDeviceGetLastErrorCode(

Callers 6

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
initializeOSPRayFunction · 0.85
setErrorCallbackMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected