sharedspice.c, add variable sharedmode, to be used in scripts.
Is set active when shared spice is running.
This commit is contained in:
parent
88efdd23e6
commit
13d31ea742
|
|
@ -587,6 +587,10 @@ ngSpice_Init(SendChar* printfcn, SendStat* statusfcn, ControlledExit* ngspiceexi
|
||||||
cp_vset("rndseed", CP_NUM, &ii);
|
cp_vset("rndseed", CP_NUM, &ii);
|
||||||
com_sseed(NULL);
|
com_sseed(NULL);
|
||||||
|
|
||||||
|
/* set a boolean variable to be used in .control sections */
|
||||||
|
bool sm = TRUE;
|
||||||
|
cp_vset("sharedmode", CP_BOOL, &sm);
|
||||||
|
|
||||||
/*parameter fetcher, used in show, alter, altermod */
|
/*parameter fetcher, used in show, alter, altermod */
|
||||||
if_getparam = spif_getparam_special;
|
if_getparam = spif_getparam_special;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue