Skip to content

Commit 644515c

Browse files
committed
Moe get_default_snippet_formatter back
1 parent 919fee1 commit 644515c

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

src/cpptrace.cpp

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,6 @@
2525
#include "snippets/snippet.hpp"
2626
#include "options.hpp"
2727

28-
CPPTRACE_BEGIN_NAMESPACE
29-
namespace detail {
30-
const formatter& get_default_snippet_formatter() {
31-
static formatter snippet_formatter = formatter{}.snippets(true);
32-
return snippet_formatter;
33-
}
34-
}
35-
CPPTRACE_END_NAMESPACE
36-
3728
CPPTRACE_BEGIN_NAMESPACE
3829
CPPTRACE_FORCE_NO_INLINE
3930
raw_trace raw_trace::current(std::size_t skip) {
@@ -178,6 +169,13 @@ CPPTRACE_BEGIN_NAMESPACE
178169
get_default_formatter().print(stream, *this, color);
179170
}
180171

172+
namespace detail {
173+
const formatter& get_default_snippet_formatter() {
174+
static formatter snippet_formatter = formatter{}.snippets(true);
175+
return snippet_formatter;
176+
}
177+
}
178+
181179
void stacktrace::print_with_snippets() const {
182180
detail::get_default_snippet_formatter().print(*this);
183181
}

0 commit comments

Comments
 (0)