@@ -505,35 +505,35 @@ Runner::runCommandLine( int argc, const char *argv[] ) const
505505
506506#if defined(_MSC_VER)
507507// Hook MSVCRT assertions to prevent dialog from appearing
508- static int
509- msvcrtSilentReportHook ( int reportType, char *message, int *returnValue )
510- {
511- // The default CRT handling of error and assertion is to display
512- // an error dialog to the user.
513- // Instead, when an error or an assertion occurs, we force the
514- // application to terminate using abort() after display
515- // the message on stderr.
516- if ( reportType == _CRT_ERROR ||
517- reportType == _CRT_ASSERT )
518- {
519- // calling abort() cause the ReportHook to be called
520- // The following is used to detect this case and let's the
521- // error handler fallback on its default behaviour (
522- // display a warning message)
523- static volatile bool isAborting = false ;
524- if ( isAborting )
525- {
526- return TRUE ;
527- }
528- isAborting = true ;
529-
530- fprintf ( stderr, " CRT Error/Assert:\n %s\n " , message );
531- fflush ( stderr );
532- abort ();
533- }
534- // Let's other reportType (_CRT_WARNING) be handled as they would by default
535- return FALSE ;
536- }
508+ static int
509+ msvcrtSilentReportHook ( int reportType, char *message, int *returnValue )
510+ {
511+ // The default CRT handling of error and assertion is to display
512+ // an error dialog to the user.
513+ // Instead, when an error or an assertion occurs, we force the
514+ // application to terminate using abort() after display
515+ // the message on stderr.
516+ if ( reportType == _CRT_ERROR ||
517+ reportType == _CRT_ASSERT )
518+ {
519+ // calling abort() cause the ReportHook to be called
520+ // The following is used to detect this case and let's the
521+ // error handler fallback on its default behaviour (
522+ // display a warning message)
523+ static volatile bool isAborting = false ;
524+ if ( isAborting )
525+ {
526+ return TRUE ;
527+ }
528+ isAborting = true ;
529+
530+ fprintf ( stderr, " CRT Error/Assert:\n %s\n " , message );
531+ fflush ( stderr );
532+ abort ();
533+ }
534+ // Let's other reportType (_CRT_WARNING) be handled as they would by default
535+ return FALSE ;
536+ }
537537#endif // if defined(_MSC_VER)
538538
539539
0 commit comments