Shows how to use xtd::diagnostics::stack_trace class.
#include <xtd/diagnostics/stack_trace>
#include <xtd/console>
#include <xtd/startup>
namespace stack_trace_example {
class main_class {
static void method3() {
}
static void method2() {
method3();
}
static void method1() {
method2();
}
public:
static void main() {
method1();
}
};
}
startup_(stack_trace_example::main_class::main);