raise warning only when params are on the .subckt line

This commit is contained in:
Holger Vogt 2019-06-29 14:45:55 +02:00
parent 01742eefef
commit aad247621e
1 changed files with 3 additions and 2 deletions

View File

@ -7750,8 +7750,9 @@ static void inp_check_syntax(struct card *deck)
}
// check for .subckt ... .ends
else if (ciprefix(".subckt", cut_line)) {
if (check_subs > 0)
fprintf(cp_err, "\nWarning: Nesting of subcircuits is only marginally supported!\n\n");
// nesting may be critical if params are involved
if (check_subs > 0 && strchr(cut_line, '='))
fprintf(cp_err, "\nWarning: Nesting of subcircuits with parameters is only marginally supported!\n\n");
check_subs++;
continue;
}