/[ascend]/trunk/base/generic/utilities/ascPanic.c
ViewVC logotype

Diff of /trunk/base/generic/utilities/ascPanic.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 426 by johnpye, Fri Mar 31 08:52:57 2006 UTC revision 427 by johnpye, Tue Apr 4 04:13:34 2006 UTC
# Line 35  static PanicCallbackFunc f_panic_callbac Line 35  static PanicCallbackFunc f_panic_callbac
35      Asc_PanicSetCallback().  If NULL (the default), nothing is called.      Asc_PanicSetCallback().  If NULL (the default), nothing is called.
36  */  */
37    
38  #ifdef __WIN32__  /*
39        disable the windows message box...
40    #if defined(__WIN32__)
41    # define USE_WIN32_FATAL_MSGBOX
42    #endif
43    */
44    
45    #ifdef USE_WIN32_FATAL_MSGBOX
46  static int f_display_MessageBox = TRUE;  static int f_display_MessageBox = TRUE;
47  /**< On Windows only, flag to enable/disable display of the MessageBox  /**< On Windows only, flag to enable/disable display of the MessageBox
48      in Asc_Panic().      in Asc_Panic().
# Line 107  void Asc_Panic(CONST int status, CONST c Line 114  void Asc_Panic(CONST int status, CONST c
114    }    }
115    
116    /* Display msg in a MessageBox under Windows unless turned off */    /* Display msg in a MessageBox under Windows unless turned off */
117  #if defined(__WIN32__) && !defined(__MINGW32__)  #ifdef USE_WIN32_FATAL_MSGBOX
118    if (FALSE != f_display_MessageBox) {    if (FALSE != f_display_MessageBox) {
119      (void)MessageBeep(MB_ICONEXCLAMATION);      (void)MessageBeep(MB_ICONEXCLAMATION);
120      MessageBox(NULL, msg, "Fatal Error in ASCEND",      MessageBox(NULL, msg, "Fatal Error in ASCEND",
# Line 142  PanicCallbackFunc Asc_PanicSetCallback(P Line 149  PanicCallbackFunc Asc_PanicSetCallback(P
149    
150  void Asc_PanicDisplayMessageBox(int is_displayed)  void Asc_PanicDisplayMessageBox(int is_displayed)
151  {  {
152  #ifdef __WIN32__  #ifdef USE_WIN32_FATAL_MSGBOX
153    f_display_MessageBox = is_displayed;    f_display_MessageBox = is_displayed;
154  #else  #else
155    UNUSED_PARAMETER(is_displayed);    UNUSED_PARAMETER(is_displayed);

Legend:
Removed from v.426  
changed lines
  Added in v.427

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22