#ifdef CPPTRACE_FULL_TRACE_WITH_STACKTRACE #include "cpptrace.hpp" #include "full_trace.hpp" #include "common.hpp" #include #include namespace cpptrace { namespace detail { CPPTRACE_FORCE_NO_INLINE std::vector generate_trace(size_t skip) { std::vector frames; std::stacktrace trace = std::stacktrace::current(skip + 1); for(const auto entry : trace) { frames.push_back({ entry.native_handle(), entry.source_line(), 0, entry.source_file(), entry.description() }); } return frames; } } } #endif