provide a controlled_exit function
This commit is contained in:
parent
80af4f24a6
commit
9f97f8701c
|
|
@ -6,6 +6,20 @@
|
||||||
#include "ngspice.h"
|
#include "ngspice.h"
|
||||||
#include "util.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
|
||||||
|
}
|
||||||
|
|
||||||
/* **************************************************************** */
|
/* **************************************************************** */
|
||||||
/* */
|
/* */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue