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

Function bar

example/user_config.cpp:16–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14BOOST_NOINLINE void bar(int i);
15
16BOOST_NOINLINE void bar(int i) {
17 boost::array<int, 5> a = {{-1, -231, -123, -23, -32}};
18 if (i >= 0) {
19 foo(a[i]);
20 } else {
21 std::cerr << "Terminate called:\n" << boost::stacktrace::stacktrace() << '\n';
22 std::exit(0);
23 }
24}
25
26BOOST_NOINLINE void foo(int i) {
27 bar(--i);

Callers 1

fooFunction · 0.70

Calls 1

fooFunction · 0.70

Tested by

no test coverage detected