| 796 | { |
| 797 | #if defined(CL_HPP_ENABLE_EXCEPTIONS) |
| 798 | static inline cl_int errHandler ( |
| 799 | cl_int err, |
| 800 | const char * errStr = nullptr) |
| 801 | { |
| 802 | if (err != CL_SUCCESS) { |
| 803 | throw Error(err, errStr); |
| 804 | } |
| 805 | return err; |
| 806 | } |
| 807 | #else |
| 808 | static inline cl_int errHandler (cl_int err, const char * errStr = nullptr) |
| 809 | { |
no test coverage detected