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

Function main

example/terminate_handler.cpp:248–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246
247
248int main(int argc, const char* argv[]) {
249 if (argc < 2) {
250 // On Windows the debugger could be active. In that case tests hang and the CI run fails.
251#ifndef BOOST_WINDOWS
252 copy_and_run(argv[0], '0', true);
253
254 // We are copying files to make sure that stacktrace printing works independently from executable name
255 copy_and_run(argv[0], '1', true);
256 copy_and_run(argv[0], '2', false);
257#endif
258
259 return test_inplace();
260 }
261
262 switch (argv[1][0]) {
263 case '0': return run_0(argv);
264 case '1': return run_1(argv);
265 }
266
267 return 404;
268}
269
270

Callers

nothing calls this directly

Calls 4

copy_and_runFunction · 0.85
test_inplaceFunction · 0.85
run_0Function · 0.85
run_1Function · 0.85

Tested by

no test coverage detected