checkasm: Disable Windows Error Reporting
authorHenrik Gramner <henrik@gramner.com>
Sun, 7 Feb 2016 13:55:26 +0000 (14:55 +0100)
committerHenrik Gramner <henrik@gramner.com>
Tue, 12 Apr 2016 15:10:39 +0000 (17:10 +0200)
When developing new assembly code it's expected that checkasm may crash,
and the error reporting dialog popup can be somewhat annoying.

tools/checkasm.c

index 5839063..7aa960d 100644 (file)
@@ -2823,6 +2823,11 @@ int main(int argc, char *argv[])
 {
     int ret = 0;
 
+#ifdef _WIN32
+    /* Disable the Windows Error Reporting dialog */
+    SetErrorMode( SEM_NOGPFAULTERRORBOX );
+#endif
+
     if( argc > 1 && !strncmp( argv[1], "--bench", 7 ) )
     {
 #if !ARCH_X86 && !ARCH_X86_64 && !ARCH_PPC && !ARCH_ARM && !ARCH_AARCH64 && !ARCH_MIPS