Zth (libzth)
Loading...
Searching...
No Matches
zth_terminate.cpp
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2019-2026 Jochem Rutgers
3
*
4
* SPDX-License-Identifier: MPL-2.0
5
*/
6
7
#include <
libzth/util.h
>
8
9
#include <
libzth/indirection.h
>
10
11
#include <exception>
12
18
#ifndef ZTH_OS_WINDOWS
19
__attribute__((weak))
20
#endif
21
__attribute__((noreturn))
void
zth_terminate
()
22
{
23
if
(
::zth_indirection
.
zth_terminate
) {
24
::zth_indirection
.
zth_terminate
();
25
}
26
27
std::terminate();
28
}
indirection.h
zth_indirection
zth_indirection_t zth_indirection
Definition
indirection.cpp:10
zth_indirection_t::zth_terminate
zth_terminate_t * zth_terminate
Definition
indirection.h:53
util.h
zth_terminate
void zth_terminate()
Terminate immediately.
Definition
zth_terminate.cpp:21
src
zth_terminate.cpp
Generated by
1.9.8