File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change 25
25
#include " snippets/snippet.hpp"
26
26
#include " options.hpp"
27
27
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
-
37
28
CPPTRACE_BEGIN_NAMESPACE
38
29
CPPTRACE_FORCE_NO_INLINE
39
30
raw_trace raw_trace::current (std::size_t skip) {
@@ -178,6 +169,13 @@ CPPTRACE_BEGIN_NAMESPACE
178
169
get_default_formatter ().print (stream, *this , color);
179
170
}
180
171
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
+
181
179
void stacktrace::print_with_snippets () const {
182
180
detail::get_default_snippet_formatter ().print (*this );
183
181
}
You can’t perform that action at this time.
0 commit comments