30#if defined(__EXCEPTIONS)
38#pragma clang diagnostic ignored "-Wc++98-compat"
39#pragma clang diagnostic ignored "-Wc++98-compat-bind-to-temporary-copy"
54#if defined(__EXCEPTIONS)
56 struct system_error_category :
public std::error_category
59 name () const noexcept override;
62 message (
int i) const override;
67 system_error_category::name () const noexcept
72#pragma GCC diagnostic push
73#pragma GCC diagnostic ignored "-Wunused-parameter"
76 system_error_category::message (
int i)
const
79 return std::string (strerror (i));
81 return std::string (
"");
85 struct cmsis_error_category :
public std::error_category
88 name () const noexcept override;
91 message (
int i) const override;
95 cmsis_error_category::name () const noexcept
100#pragma GCC diagnostic push
101#pragma GCC diagnostic ignored "-Wunused-parameter"
104 cmsis_error_category::message (
int i)
const
107 return std::string (strerror (i));
109 return std::string (
"");
113#pragma GCC diagnostic pop
120#if defined(__EXCEPTIONS)
122 throw std::system_error (std::error_code (ev, system_error_category ()),
133#if defined(__EXCEPTIONS)
135 throw std::system_error (std::error_code (ev, cmsis_error_category ()),
void __throw_system_error(int ev, const char *what_arg)
void __throw_cmsis_error(int ev, const char *what_arg)
Single file µOS++ RTOS definitions.
int trace_printf(const char *format,...)