#include "FileStackWalker.h"

// Put this stuff in some common header shared by this and CrashLogger

#include <io.h>

#define write _write

FileStackWalker::FileStackWalker(int fd_out) : StackWalker() {
   this->fd_out = fd_out;
}

void FileStackWalker::OnOutput(LPCSTR szText) {
   write(fd_out, szText, strlen(szText));
   StackWalker::OnOutput(szText);
}