Mercurial > hg > xemacs-beta
diff src/emacs.c @ 227:0e522484dd2a r20-5b12
Import from CVS: tag r20-5b12
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:12:37 +0200 |
parents | 12579d965149 |
children | 557eaa0339bf |
line wrap: on
line diff
--- a/src/emacs.c Mon Aug 13 10:11:42 2007 +0200 +++ b/src/emacs.c Mon Aug 13 10:12:37 2007 +0200 @@ -58,6 +58,11 @@ #endif #endif +#if defined (_WIN32) && defined (DEBUG_XEMACS) +/* For DebugBreak in asserf_failed() */ +#include <windows.h> +#endif + /* For PATH_EXEC */ #include "paths.h" @@ -2202,7 +2207,9 @@ stderr_out ("Fatal error: assertion failed, file %s, line %d, %s\n", file, line, expr); #undef abort /* avoid infinite #define loop... */ -#ifndef ASSERTIONS_DONT_ABORT +#if defined (_WIN32) && defined (DEBUG_XEMACS) + DebugBreak (); +#elif !defined (ASSERTIONS_DONT_ABORT) abort (); #endif }