mirror of
https://github.com/boostorg/stacktrace.git
synced 2026-01-19 16:52:10 +00:00
Use the Boost.WinAPI library and do not write stacktrace files into the folders of other libraries. Fixes #20
This commit is contained in:
@@ -1,36 +0,0 @@
|
||||
// Copyright Antony Polukhin 2017.
|
||||
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// See http://www.boost.org/LICENSE_1_0.txt
|
||||
|
||||
#ifndef BOOST_DETAIL_WINAPI_CAPTURE_STACK_HPP_
|
||||
#define BOOST_DETAIL_WINAPI_ENVIRONMENT_HPP_
|
||||
|
||||
#include <boost/detail/winapi/basic_types.hpp>
|
||||
|
||||
#ifdef BOOST_HAS_PRAGMA_ONCE
|
||||
#pragma once
|
||||
#endif
|
||||
|
||||
#if !defined( BOOST_USE_WINDOWS_H )
|
||||
extern "C" {
|
||||
|
||||
BOOST_SYMBOL_IMPORT boost::detail::winapi::USHORT_ WINAPI RtlCaptureStackBackTrace(
|
||||
boost::detail::winapi::ULONG_ FramesToSkip,
|
||||
boost::detail::winapi::ULONG_ FramesToCapture,
|
||||
boost::detail::winapi::PVOID_ *BackTrace,
|
||||
boost::detail::winapi::PULONG_ BackTraceHash
|
||||
);
|
||||
|
||||
} // extern "C"
|
||||
#endif // !defined( BOOST_USE_WINDOWS_H )
|
||||
|
||||
namespace boost { namespace detail { namespace winapi {
|
||||
|
||||
using ::RtlCaptureStackBackTrace;
|
||||
|
||||
} // namespace winapi
|
||||
} // namespace detail
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_DETAIL_WINAPI_CAPTURE_STACK_HPP_
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
#include <boost/stacktrace/safe_dump_to.hpp>
|
||||
|
||||
#include <boost/detail/winapi/capture_stack.hpp>
|
||||
#include <boost/detail/winapi/stack_backtrace.hpp>
|
||||
|
||||
namespace boost { namespace stacktrace { namespace detail {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user