provide a controlled_exit function

This commit is contained in:
dwarning 2010-01-19 21:48:42 +00:00
parent 80af4f24a6
commit 9f97f8701c
1 changed files with 14 additions and 0 deletions

View File

@ -6,6 +6,20 @@
#include "ngspice.h"
#include "util.h"
#ifdef HAS_WINDOWS
void winmessage(char* new_msg);
#endif
void
controlled_exit(int dummy)
{
#ifdef HAS_WINDOWS
winmessage("Fatal error in SPICE");
#else
fprintf(stderr, "Fatal error in SPICE - Return");
getc(stdin);
#endif
}
/* **************************************************************** */
/* */