Emacs autoinst & templates

Status
Not open for further replies.

ivlsi

Advanced Member level 3
Joined
Feb 17, 2012
Messages
883
Helped
17
Reputation
32
Reaction score
16
Trophy points
1,298
Visit site
Activity points
6,868
Hi All,

How to write AUTOINST templates for the instance name, not for a module name?

For example, I have the following instances:
module_name i_instance_name1 ();
module_name i_instance_name2 ();

Regular Template will looks like following:
/* module_name AUTO_TEMPLATE (
// Outputs
...
// Input
...
); */

But I'd like to be able to write templates for instance names (not module names). Something like following:
/* instance_name AUTO_TEMPLATE (
// Outputs
...
// Input
...
); */

How can I do so? So, for the same module name I'd like to write two difference templates for two difference instances.

Thank you!
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…