-
Notifications
You must be signed in to change notification settings - Fork 25
/
functexcept.cc
87 lines (67 loc) · 2.2 KB
/
functexcept.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/*
* Copyright (c) 2018, Christopher Durand
*
* This file is part of the modm project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
// ----------------------------------------------------------------------------
#include <bits/functexcept.h>
namespace std _GLIBCXX_VISIBILITY(default)
{
_GLIBCXX_BEGIN_NAMESPACE_VERSION
void __attribute__((weak))
__throw_bad_exception()
{ __builtin_abort(); }
void __attribute__((weak))
__throw_bad_alloc()
{ __builtin_abort(); }
void __attribute__((weak))
__throw_bad_cast()
{ __builtin_abort(); }
void __attribute__((weak))
__throw_bad_typeid()
{ __builtin_abort(); }
void __attribute__((weak))
__throw_logic_error(const char* __s __attribute__((unused)))
{ __builtin_abort(); }
void __attribute__((weak))
__throw_domain_error(const char* __s __attribute__((unused)))
{ __builtin_abort(); }
void __attribute__((weak))
__throw_invalid_argument(const char* __s __attribute__((unused)))
{ __builtin_abort(); }
void __attribute__((weak))
__throw_length_error(const char* __s __attribute__((unused)))
{ __builtin_abort(); }
void __attribute__((weak))
__throw_out_of_range(const char* __s __attribute__((unused)))
{ __builtin_abort(); }
void __attribute__((weak))
__throw_runtime_error(const char* __s __attribute__((unused)))
{ __builtin_abort(); }
void __attribute__((weak))
__throw_range_error(const char* __s __attribute__((unused)))
{ __builtin_abort(); }
void __attribute__((weak))
__throw_overflow_error(const char* __s __attribute__((unused)))
{ __builtin_abort(); }
void __attribute__((weak))
__throw_underflow_error(const char* __s __attribute__((unused)))
{ __builtin_abort(); }
void __attribute__((weak))
__throw_bad_optional_access()
{ __builtin_abort(); }
void __attribute__((weak))
__throw_bad_variant_access(const char* __s __attribute__((unused)))
{ __builtin_abort(); }
void __attribute__((weak))
__throw_bad_function_call()
{ __builtin_abort(); }
void __attribute__((weak))
__throw_bad_any_cast()
{ __builtin_abort(); }
_GLIBCXX_END_NAMESPACE_VERSION
} // namespace