| 18 | #include <rtthread.h> |
| 19 | |
| 20 | inline void throw_system_error(int err, const char *what_msg) |
| 21 | { |
| 22 | #ifdef RT_USING_CPP_EXCEPTIONS |
| 23 | throw std::system_error(std::error_code(err, std::system_category()), what_msg); |
| 24 | #else |
| 25 | (void)err; |
| 26 | (void)what_msg; |
| 27 | ::abort(); |
| 28 | #endif |
| 29 | } |
| 30 | |
| 31 | class tick_clock |
| 32 | { |
no test coverage detected