source: opengl-game/FileStackWalker.cpp

feature/imgui-sdl
Last change on this file was 5529ab5, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 5 years ago

Rename CrashLogger.cpp to crash-logger.cpp and CrashLogger.h to crash-logger.hpp

  • Property mode set to 100644
File size: 358 bytes
Line 
1#include "FileStackWalker.h"
2
3// Put this stuff in some common header shared by this and CrashLogger
4
5#include <io.h>
6
7#define write _write
8
9FileStackWalker::FileStackWalker(int fd_out) : StackWalker() {
10 this->fd_out = fd_out;
11}
12
13void FileStackWalker::OnOutput(LPCSTR szText) {
14 write(fd_out, szText, strlen(szText));
15 StackWalker::OnOutput(szText);
16}
Note: See TracBrowser for help on using the repository browser.