summaryrefslogtreecommitdiffstats
path: root/examples/cpu-com-example/main.cpp
diff options
context:
space:
mode:
authorAnders Leino <aleino@nvidia.com>2025-01-08 08:30:18 +0200
committerGitHub <noreply@github.com>2025-01-07 22:30:18 -0800
commit5b9931456f595b0a2163fabb65dceac99e0e220f (patch)
tree1329b9bdb3fd77349e6a03dc4d2d1c34251f219b /examples/cpu-com-example/main.cpp
parentc43f6fa55aca23365c86c6ec1737d42be74d9d3e (diff)
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 <yonghe@outlook.com>
Diffstat (limited to 'examples/cpu-com-example/main.cpp')
-rw-r--r--examples/cpu-com-example/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/cpu-com-example/main.cpp b/examples/cpu-com-example/main.cpp
index 382b3cacd..6c67215b4 100644
--- a/examples/cpu-com-example/main.cpp
+++ b/examples/cpu-com-example/main.cpp
@@ -175,7 +175,7 @@ static SlangResult _innerMain(int argc, char** argv)
return SLANG_OK;
}
-int main(int argc, char** argv)
+int exampleMain(int argc, char** argv)
{
return SLANG_SUCCEEDED(_innerMain(argc, argv)) ? 0 : -1;
}