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

Function bar

example/throwing_st.cpp:45–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43
44#include <boost/array.hpp>
45BOOST_NOINLINE void bar(int i) {
46 boost::array<int, 5> a = {{0, 0, 0, 0, 0}};
47 if (i < 5) {
48 if (i >= 0) {
49 foo(a[i]);
50 } else {
51 oops(i);
52 }
53 }
54 std::exit(2);
55}
56
57BOOST_NOINLINE void foo(int i) {
58 bar(--i);

Callers 1

fooFunction · 0.70

Calls 2

oopsFunction · 0.85
fooFunction · 0.70

Tested by

no test coverage detected