pass instance `device_models=...` attribute through translate() so @vars are resolved
This commit is contained in:
parent
38ff460694
commit
e50c6f0df1
|
|
@ -216,7 +216,7 @@ static int spice_netlist(FILE *fd, int spice_stop )
|
|||
fprintf(fd, "**** end_element\n");
|
||||
}
|
||||
/* hash device_model attribute if any */
|
||||
m = get_tok_value(xctx->inst[i].prop_ptr, "device_model", 0);
|
||||
m = translate(i, get_tok_value(xctx->inst[i].prop_ptr, "device_model", 0));
|
||||
if(m[0]) str_hash_lookup(&model_table, model_name(m), m, XINSERT);
|
||||
else {
|
||||
m = get_tok_value( (xctx->inst[i].ptr+ xctx->sym)->prop_ptr, "device_model", 0);
|
||||
|
|
|
|||
Loading…
Reference in New Issue