| 150 | } |
| 151 | |
| 152 | RTC_API RTCError rtcGetDeviceError(RTCDevice hdevice) |
| 153 | { |
| 154 | Device* device = (Device*) hdevice; |
| 155 | RTC_CATCH_BEGIN; |
| 156 | RTC_TRACE(rtcGetDeviceError); |
| 157 | if (device == nullptr) return Device::getThreadErrorCode(); |
| 158 | else return device->getDeviceErrorCode(); |
| 159 | RTC_CATCH_END(device); |
| 160 | return RTC_ERROR_UNKNOWN; |
| 161 | } |
| 162 | |
| 163 | RTC_API const char* rtcGetDeviceLastErrorMessage(RTCDevice hdevice) |
| 164 | { |
no test coverage detected