From 5b9931456f595b0a2163fabb65dceac99e0e220f Mon Sep 17 00:00:00 2001 From: Anders Leino Date: Wed, 8 Jan 2025 08:30:18 +0200 Subject: Add backtraces to examples (#5973) * examples: Log stack trace on exceptions For now, this is only implemented on Windows. This helps to address #5520. * examples: Print log file if there is any * format code --------- Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com> Co-authored-by: Yong He --- examples/hello-world/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/hello-world/main.cpp') diff --git a/examples/hello-world/main.cpp b/examples/hello-world/main.cpp index 7e4211b12..fbf67569d 100644 --- a/examples/hello-world/main.cpp +++ b/examples/hello-world/main.cpp @@ -66,7 +66,8 @@ struct HelloWorldExample : public TestBase ~HelloWorldExample(); }; -int main(int argc, char* argv[]) + +int exampleMain(int argc, char** argv) { initDebugCallback(); HelloWorldExample example; -- cgit v1.2.3