| 522 | } |
| 523 | |
| 524 | OIDN_API void oidnSetDeviceErrorFunction(OIDNDevice deviceC, OIDNErrorFunction func, void* userPtr) |
| 525 | { |
| 526 | Device* device = reinterpret_cast<Device*>(deviceC); |
| 527 | OIDN_TRY |
| 528 | checkHandle(deviceC); |
| 529 | OIDN_LOCK_DEVICE(device); |
| 530 | device->setErrorFunction(reinterpret_cast<ErrorFunction>(func), userPtr); |
| 531 | OIDN_CATCH_DEVICE(device) |
| 532 | } |
| 533 | |
| 534 | OIDN_API OIDNError oidnGetDeviceError(OIDNDevice deviceC, const char** outMessage) |
| 535 | { |
no test coverage detected