Browse Source

controlled_exit only for WinGUI and shared ngspice

pre-master-46
Holger Vogt 6 years ago
parent
commit
e1a69e3fc5
  1. 4
      src/misc/alloc.c

4
src/misc/alloc.c

@ -185,7 +185,11 @@ static void overflow_error(size_t num, size_t size)
(void) fprintf(stderr, "Cannot allocate %zu X %zu bytes: "
"Product exceeds largest size_t = %zu.\n",
num, size, SIZE_MAX);
#if defined HAS_WINGUI || defined SHARED_MODULE
controlled_exit(EXIT_FAILURE);
#else
exit(EXIT_FAILURE);
#endif
} /* end of function overflow_error */
#endif /* #ifndef HAVE_LIBGC */
Loading…
Cancel
Save