WinGUI: Push any remaining error message into text window
before emitting interactive error message window and exit.
This commit is contained in:
parent
ae72677cc2
commit
182a4d3f5f
|
|
@ -15,6 +15,7 @@ Author: 1985 Wayne A. Christopher, U. C. Berkeley CAD Group
|
||||||
|
|
||||||
#ifdef HAS_WINGUI
|
#ifdef HAS_WINGUI
|
||||||
void winmessage(char *new_msg);
|
void winmessage(char *new_msg);
|
||||||
|
extern void UpdateMainText(void);
|
||||||
#elif defined SHARED_MODULE
|
#elif defined SHARED_MODULE
|
||||||
extern ATTRIBUTE_NORETURN void shared_exit(int status);
|
extern ATTRIBUTE_NORETURN void shared_exit(int status);
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -27,8 +28,10 @@ ATTRIBUTE_NORETURN void
|
||||||
controlled_exit(int status)
|
controlled_exit(int status)
|
||||||
{
|
{
|
||||||
#ifdef HAS_WINGUI
|
#ifdef HAS_WINGUI
|
||||||
if (status)
|
if (status) {
|
||||||
|
UpdateMainText(); /* get any remaining error messages into main text window */
|
||||||
winmessage("Fatal error in NGSPICE");
|
winmessage("Fatal error in NGSPICE");
|
||||||
|
}
|
||||||
exit(status);
|
exit(status);
|
||||||
#elif defined SHARED_MODULE
|
#elif defined SHARED_MODULE
|
||||||
/* do not exit, if shared ngspice, but call back */
|
/* do not exit, if shared ngspice, but call back */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue