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

Method stacktrace make_some_stacktrace1_impl

test/test_impl.cpp:45–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45BOOST_ST_API BOOST_NOINLINE boost::stacktrace::stacktrace make_some_stacktrace1_impl(int d = 0) {
46 boost::stacktrace::stacktrace result(0, 4);
47 if (result.size() < 4) {
48 if (d > 4) throw std::runtime_error("Stack is not growing in test OR stacktrace fails to work in `bar1` function.");
49 return make_some_stacktrace1_impl(d + 1);
50 }
51 return result;
52}
53
54BOOST_ST_API BOOST_NOINLINE boost::stacktrace::stacktrace make_some_stacktrace2_impl(int d = 0) {
55 boost::stacktrace::stacktrace result(0, 4);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected