summaryrefslogtreecommitdiffstats
path: root/src/util.h
diff options
context:
space:
mode:
authorJiri Moudry <gmoudry@gmail.com>2012-03-27 15:39:01 (GMT)
committerJiri Moudry <gmoudry@gmail.com>2012-03-28 15:19:11 (GMT)
commit755c501084412a0896312af05cda6d4227136174 (patch)
treec4b33ee3e2f08379835374b93cca75169929fe99 /src/util.h
parent6a09b9653e5c6698dd687c6e9deb0b51eac39dca (diff)
downloadNinja-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.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 9b4e745..016e6cf 100644
--- a/src/util.h
+++ b/src/util.h
@@ -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