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

Function function_from_main_translation_unit

test/test_impl.hpp:46–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 BOOST_SYMBOL_VISIBLE
45#endif
46inline st_pair function_from_main_translation_unit(int i) {
47 if (i) {
48 return function_from_library(i - 1, function_from_main_translation_unit);
49 }
50
51 std::pair<stacktrace, stacktrace> ret;
52 try {
53 throw std::logic_error("test");
54 } catch (const std::logic_error& /*e*/) {
55 ret.second = stacktrace();
56 return ret;
57 }
58}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected