-
Notifications
You must be signed in to change notification settings - Fork 84
Expand file tree
/
Copy pathboost_stacktrace_dump.cppm
More file actions
52 lines (40 loc) · 1.25 KB
/
boost_stacktrace_dump.cppm
File metadata and controls
52 lines (40 loc) · 1.25 KB
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
// Copyright Antony Polukhin, 2025-2026.
// Copyright Fedor Osetrov, 2025-2026.
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
module;
#ifndef _GNU_SOURCE
# define _GNU_SOURCE
#endif
#include <boost/config.hpp>
#include <boost/predef.h>
#if !defined(BOOST_STACKTRACE_USE_STD_MODULE)
#include <stdio.h>
#endif
#include <fcntl.h>
#include <unwind.h>
#include <sys/stat.h>
#define BOOST_STACKTRACE_INTERFACE_UNIT
#define BOOST_STACKTRACE_LINK
export module boost.stacktrace.dump;
#if defined(BOOST_STACKTRACE_USE_STD_MODULE)
import std;
#endif
#ifdef __clang__
# pragma clang diagnostic ignored "-Winclude-angled-in-module-purview"
#endif
#include <boost/stacktrace/safe_dump_to.hpp>
module :private;
#define BOOST_STACKTRACE_INTERNAL_BUILD_LIBS
#if defined(BOOST_WINDOWS)
# include <boost/stacktrace/detail/safe_dump_win.ipp>
#else
# include <boost/stacktrace/detail/safe_dump_posix.ipp>
#endif
#if defined(BOOST_WINDOWS) && !defined(BOOST_WINAPI_IS_MINGW) // MinGW does not provide RtlCaptureStackBackTrace. MinGW-w64 does.
# include <boost/stacktrace/detail/collect_msvc.ipp>
#else
# include <boost/stacktrace/detail/collect_unwind.ipp>
#endif