µOS++ IIIe Reference 7.0.0
The third edition of µOS++, a POSIX inspired open source framework, written in C++
Loading...
Searching...
No Matches
system_error
Go to the documentation of this file.
1/*
2 * This file is part of the µOS++ project (https://micro-os-plus.github.io/).
3 * Copyright (c) 2016-2025 Liviu Ionescu. All rights reserved.
4 *
5 * Permission to use, copy, modify, and/or distribute this software
6 * for any purpose is hereby granted, under the terms of the MIT license.
7 *
8 * If a copy of the license was not distributed with this file, it can
9 * be obtained from https://opensource.org/licenses/mit.
10 */
11
12/*
13 * The code is inspired by LLVM libcxx and GNU libstdc++-v3.
14 */
15
16#ifndef CMSIS_PLUS_ESTD_SYSTEM_ERROR_
17#define CMSIS_PLUS_ESTD_SYSTEM_ERROR_
18
19// ----------------------------------------------------------------------------
20
21#if !defined(__ARM_EABI__)
22#include <system_error>
23#endif
24
25// ----------------------------------------------------------------------------
26
27#pragma GCC diagnostic push
28#if defined(__clang__)
29#pragma clang diagnostic ignored "-Wc++98-compat"
30#pragma clang diagnostic ignored "-Wreserved-identifier"
31#endif
32
33// ----------------------------------------------------------------------------
34
35namespace os
36{
37 namespace estd
38 {
39
40 // ------------------------------------------------------------------------
41
42 [[noreturn]] void
43 __throw_system_error (int ev, const char* what_arg);
44
45#if 1
46 [[noreturn]] void
47 __throw_cmsis_error (int ev, const char* what_arg);
48#endif
49 // ------------------------------------------------------------------------
50
51 } /* namespace estd */
52} /* namespace os */
53
54#pragma GCC diagnostic pop
55
56// ----------------------------------------------------------------------------
57
58#endif /* CMSIS_PLUS_ESTD_SYSTEM_ERROR_ */
void __throw_system_error(int ev, const char *what_arg)
void __throw_cmsis_error(int ev, const char *what_arg)
System namespace.