mirror of
https://github.com/boostorg/stacktrace.git
synced 2026-07-21 13:33:41 +00:00
e93f50def8
Support build with `import std;`. Add Github CI pipeline --------- Co-authored-by: Fedor Osetrov <fdr400@Fedors-MacBook-Pro.local>
51 lines
1.1 KiB
C++
51 lines
1.1 KiB
C++
// 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/core/no_exceptions_support.hpp>
|
|
#include <boost/core/demangle.hpp>
|
|
#include <boost/core/noncopyable.hpp>
|
|
#include <boost/container_hash/hash_fwd.hpp>
|
|
#include <boost/predef.h>
|
|
|
|
#if !defined(BOOST_STACKTRACE_USE_STD_MODULE)
|
|
#include <vector>
|
|
#include <fstream>
|
|
#include <sstream>
|
|
#include <cxxabi.h>
|
|
#endif
|
|
|
|
#include <dlfcn.h>
|
|
|
|
#define BOOST_STACKTRACE_INTERFACE_UNIT
|
|
#define BOOST_STACKTRACE_LINK
|
|
|
|
export module boost.stacktrace.basic;
|
|
|
|
#if defined(BOOST_STACKTRACE_USE_STD_MODULE)
|
|
import std;
|
|
#endif
|
|
|
|
import boost.stacktrace.dump;
|
|
|
|
#ifdef __clang__
|
|
# pragma clang diagnostic ignored "-Winclude-angled-in-module-purview"
|
|
#endif
|
|
|
|
#include <boost/stacktrace/stacktrace.hpp>
|
|
#include <boost/stacktrace/this_thread.hpp>
|
|
|
|
module :private;
|
|
#define BOOST_STACKTRACE_INTERNAL_BUILD_LIBS
|
|
#include <boost/stacktrace/detail/frame_unwind.ipp>
|