Fix MSVC warnings and add some doxygen workarounds for prettier reference section of the docs
This commit is contained in:
parent
55063fd438
commit
3d25e45a0d
@ -35,7 +35,7 @@ namespace std { inline void ignore_abort(){ std::exit(0); } }
|
||||
#include <boost/stacktrace.hpp>
|
||||
|
||||
namespace boost {
|
||||
inline void assertion_failed_msg(char const* expr, char const* msg, char const* function, char const* file, long line) {
|
||||
inline void assertion_failed_msg(char const* expr, char const* msg, char const* function, char const* /*file*/, long /*line*/) {
|
||||
std::cerr << "Expression '" << expr << "' is false in function '" << function << "': " << (msg ? msg : "<...>") << ".\n"
|
||||
<< "Backtrace:\n" << boost::stacktrace::stacktrace() << '\n';
|
||||
std::abort();
|
||||
|
@ -19,7 +19,7 @@ void print_signal_handler_and_exit() {
|
||||
//]
|
||||
|
||||
|
||||
void my_signal_handler(int signum) {
|
||||
void my_signal_handler(int /*signum*/) {
|
||||
std::exit(1);
|
||||
}
|
||||
|
||||
|
@ -20,7 +20,7 @@ namespace boost { namespace stacktrace { namespace detail {
|
||||
|
||||
std::size_t this_thread_frames::collect(native_frame_ptr_t* out_frames, std::size_t max_frames_count, std::size_t skip) BOOST_NOEXCEPT {
|
||||
return boost::detail::winapi::RtlCaptureStackBackTrace(
|
||||
skip,
|
||||
static_cast<boost::detail::winapi::ULONG_>(skip),
|
||||
static_cast<boost::detail::winapi::ULONG_>(max_frames_count),
|
||||
const_cast<boost::detail::winapi::PVOID_*>(out_frames),
|
||||
0
|
||||
|
@ -21,12 +21,16 @@
|
||||
|
||||
#include <boost/stacktrace/detail/push_options.pp>
|
||||
|
||||
|
||||
/// @headerfile boost/stacktrace/detail/frame_decl.hpp boost/stacktrace/detail/frame.hpp
|
||||
/// Use <boost/stacktrace/frame.hpp> instead!
|
||||
|
||||
/// @file boost/stacktrace/detail/frame_decl.hpp
|
||||
/// Use <boost/stacktrace/frame.hpp> instead!
|
||||
|
||||
namespace boost { namespace stacktrace {
|
||||
|
||||
/// @class boost::stacktrace::frame boost/stacktrace/detail/frame_decl.hpp "boost/stacktrace/frame.hpp"
|
||||
/// @class boost::stacktrace::frame boost/stacktrace/detail/frame_decl.hpp "boost/stacktrace/frame.hpp" <boost/stacktrace/detail/frame.hpp>
|
||||
/// @brief Non-owning class that references the frame information stored inside the boost::stacktrace::stacktrace class.
|
||||
class frame {
|
||||
public:
|
||||
|
Loading…
Reference in New Issue
Block a user