MCPcopy Create free account
hub / github.com/boostorg/stacktrace / stacktrace make_some_stacktrace2_impl

Method stacktrace make_some_stacktrace2_impl

test/test_impl.cpp:54–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54BOOST_ST_API BOOST_NOINLINE boost::stacktrace::stacktrace make_some_stacktrace2_impl(int d = 0) {
55 boost::stacktrace::stacktrace result(0, 4);
56 if (result.size() < 4) {
57 if (d > 4) throw std::runtime_error("Stack is not growing in test OR stacktrace fails to work in `bar2` function.");
58 return make_some_stacktrace2_impl(d + 1);
59 }
60 return result;
61}
62
63BOOST_ST_API BOOST_NOINLINE boost::stacktrace::stacktrace make_some_stacktrace1() {
64 boost::stacktrace::stacktrace result = make_some_stacktrace1_impl();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected