Merge branch 'master' into netgen-1.5

This commit is contained in:
Tim Edwards 2021-05-26 03:00:32 -04:00
commit e34166fdb9
2 changed files with 7 additions and 1 deletions

View File

@ -1 +1 @@
1.5.178
1.5.179

View File

@ -1593,6 +1593,12 @@ char *Cell(char *inststr, char *model, ...)
if (IsPort(tp2)) portnum++;
tp2 = tp2->next;
}
/* Automatically ignore any cell that has no ports (e.g., logo art) */
if (portnum == 0) {
Printf("Class '%s' has no pins and so will be ignored.\n", model);
return NULL;
}
/* now generate lists of nodes using variable length parameter list */
va_start(ap, model);