MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / throw_system_error

Function throw_system_error

components/libc/cplusplus/cpp11/gcc/__utils.h:20–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18#include <rtthread.h>
19
20inline 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
31class tick_clock
32{

Callers 4

waitMethod · 0.85
start_threadMethod · 0.85
joinMethod · 0.85
detachMethod · 0.85

Calls 1

abortFunction · 0.50

Tested by

no test coverage detected