**************************************************************************/
#include <windows.h>
+
#include <assert.h>
-#include <signal.h>
#include <string.h>
#include <stdio.h>
#include "os.hpp"
-namespace OS {
+namespace os {
/*
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);
}
}
}
-} /* namespace OS */
+} /* namespace os */