Shows how to use xtd::diagnostics::stack_trace class.
#include <xtd/xtd>
namespace stack_trace_example {
class main_class {
static void method3() {
console::write_line("stack_trace :");
console::write_line(diagnostics::stack_trace {});
}
static void method2() {
method3();
}
static void method1() {
method2();
}
public:
static void main() {
method1();
}
};
}
startup_(stack_trace_example::main_class::main);
#define startup_(main_method)
Defines the entry point to be called when the application loads. Generally this is set either to the ...
Definition startup.hpp:168