feature/imgui-sdl
points-test
Last change
on this file since 99d44b2 was 6abfd07, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 6 years ago |
Create a log with a stack-trace when the game crashes
|
-
Property mode
set to
100644
|
File size:
429 bytes
|
Line | |
---|
1 | #include "FileStackWalker.h"
|
---|
2 |
|
---|
3 | // Put this stuff in some common header shared by this and CrashLogger
|
---|
4 | // Put this stuff in some common header shared by this and CrashLogger
|
---|
5 |
|
---|
6 | #include <io.h>
|
---|
7 |
|
---|
8 | #define write _write
|
---|
9 |
|
---|
10 | FileStackWalker::FileStackWalker(int fd_out) : StackWalker() {
|
---|
11 | this->fd_out = fd_out;
|
---|
12 | }
|
---|
13 |
|
---|
14 | void FileStackWalker::OnOutput(LPCSTR szText) {
|
---|
15 | write(fd_out, szText, strlen(szText));
|
---|
16 | StackWalker::OnOutput(szText);
|
---|
17 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.