comparison 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
comparison
equal deleted inserted replaced
226:eea38c7ad7b4 227:0e522484dd2a
54 54
55 #ifdef APOLLO 55 #ifdef APOLLO
56 #ifndef APOLLO_SR10 56 #ifndef APOLLO_SR10
57 #include <default_acl.h> 57 #include <default_acl.h>
58 #endif 58 #endif
59 #endif
60
61 #if defined (_WIN32) && defined (DEBUG_XEMACS)
62 /* For DebugBreak in asserf_failed() */
63 #include <windows.h>
59 #endif 64 #endif
60 65
61 /* For PATH_EXEC */ 66 /* For PATH_EXEC */
62 #include "paths.h" 67 #include "paths.h"
63 68
2200 assert_failed (CONST char *file, int line, CONST char *expr) 2205 assert_failed (CONST char *file, int line, CONST char *expr)
2201 { 2206 {
2202 stderr_out ("Fatal error: assertion failed, file %s, line %d, %s\n", 2207 stderr_out ("Fatal error: assertion failed, file %s, line %d, %s\n",
2203 file, line, expr); 2208 file, line, expr);
2204 #undef abort /* avoid infinite #define loop... */ 2209 #undef abort /* avoid infinite #define loop... */
2205 #ifndef ASSERTIONS_DONT_ABORT 2210 #if defined (_WIN32) && defined (DEBUG_XEMACS)
2211 DebugBreak ();
2212 #elif !defined (ASSERTIONS_DONT_ABORT)
2206 abort (); 2213 abort ();
2207 #endif 2214 #endif
2208 } 2215 }
2209 #endif /* USE_ASSERTIONS */ 2216 #endif /* USE_ASSERTIONS */
2210 2217