main.c, emphasize the SETJMP wrapper in ngspice and ngnutmeg
This commit is contained in:
parent
f70bf82865
commit
9887a2fb2b
11
src/main.c
11
src/main.c
|
|
@ -1115,6 +1115,9 @@ main(int argc, char **argv)
|
|||
|
||||
}
|
||||
|
||||
|
||||
#ifdef SIMULATOR
|
||||
|
||||
/* Pass 2 -- get the filenames. If we are spice, then this means
|
||||
* build a circuit for this file. If this is in server mode, don't
|
||||
* process any of these args. */
|
||||
|
|
@ -1125,8 +1128,6 @@ main(int argc, char **argv)
|
|||
cp_interactive = FALSE;
|
||||
err = 0;
|
||||
|
||||
#ifdef SIMULATOR
|
||||
|
||||
#ifdef FastRand
|
||||
// initialization and seed for FastNorm Gaussian random generator
|
||||
{
|
||||
|
|
@ -1305,6 +1306,12 @@ evl:
|
|||
|
||||
#else /* ~ SIMULATOR */
|
||||
|
||||
if (SETJMP(jbuf, 1))
|
||||
goto evl;
|
||||
|
||||
cp_interactive = FALSE;
|
||||
err = 0;
|
||||
|
||||
if (ft_nutmeg && gdata) {
|
||||
if (optind < argc)
|
||||
while (optind < argc)
|
||||
|
|
|
|||
Loading…
Reference in New Issue