diff options
author | Jiri Moudry <gmoudry@gmail.com> | 2012-03-27 15:39:01 (GMT) |
---|---|---|
committer | Jiri Moudry <gmoudry@gmail.com> | 2012-03-28 15:19:11 (GMT) |
commit | 755c501084412a0896312af05cda6d4227136174 (patch) | |
tree | c4b33ee3e2f08379835374b93cca75169929fe99 /src/util.h | |
parent | 6a09b9653e5c6698dd687c6e9deb0b51eac39dca (diff) | |
download | Ninja-755c501084412a0896312af05cda6d4227136174.zip Ninja-755c501084412a0896312af05cda6d4227136174.tar.gz Ninja-755c501084412a0896312af05cda6d4227136174.tar.bz2 |
Improve handling of fatal errors on Windows, support creation of minidumps
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -76,6 +76,13 @@ string StripAnsiEscapeCodes(const string& in); #endif #ifdef _WIN32 + +/// Handler for __except block +int exception_filter(unsigned int code, struct _EXCEPTION_POINTERS *ep); + +/// Write a windows minidump file in temp directory. User can specify null 'pep' argument. +void Create_Win32_MiniDump( struct _EXCEPTION_POINTERS* pep ); + /// Convert the value returned by GetLastError() into a string. string GetLastErrorString(); #endif |