feature/imgui-sdl
points-test
Last change
on this file since 98f06d9 was d9b6a1c, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 6 years ago |
Print a stack trace in the event of a crash. Currently, the code for this on Windows outputs the stack trace to stderr, not to a log file.
|
-
Property mode
set to
100644
|
File size:
247 bytes
|
Rev | Line | |
---|
[d9b6a1c] | 1 | #include "FileStackWalker.h"
|
---|
| 2 |
|
---|
| 3 | FileStackWalker::FileStackWalker(int fd_out) : StackWalker() {
|
---|
| 4 | this->fd_out = fd_out;
|
---|
| 5 | }
|
---|
| 6 |
|
---|
| 7 | void FileStackWalker::OnOutput(LPCSTR szText) {
|
---|
| 8 | write(fd_out, szText, strlen(szText));
|
---|
| 9 | StackWalker::OnOutput(szText);
|
---|
| 10 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.