]> git.cworth.org Git - apitrace/blobdiff - common/os_win32.cpp
Lower case namespaces.
[apitrace] / common / os_win32.cpp
index 587503c41553fa7cd013cf5ad28862fa34f938a7..4e48da5089992c594615018eabd37bc9957d3e8f 100644 (file)
  **************************************************************************/
 
 #include <windows.h>
+
 #include <assert.h>
-#include <signal.h>
 #include <string.h>
 #include <stdio.h>
 
 #include "os.hpp"
 
 
-namespace OS {
+namespace os {
 
 
 /* 
@@ -161,6 +161,12 @@ SetExceptionCallback(void (*callback)(void))
         gCallback = callback;
 
         assert(!prevExceptionFilter);
+
+        /*
+         * TODO: Unfortunately it seems that the CRT will reset the exception
+         * handler in certain circumnstances.  See
+         * http://www.codeproject.com/KB/winsdk/crash_hook.aspx
+         */
         prevExceptionFilter = SetUnhandledExceptionFilter(UnhandledExceptionFilter);
     }
 }
@@ -172,4 +178,4 @@ ResetExceptionCallback(void)
 }
 
 
-} /* namespace OS */
+} /* namespace os */