Library callback...

G

Giuseppe

Guest
Hello,
I have another weird question for you! Do you know if is it possible
to launch a skill function every time I use a particular library? I
tried the libInit.il file but this launchs the skill procedure only
one time. Is there another solution to the problem?

Thanks,

Giuseppe
 
On 2 Feb 2005 08:03:16 -0800, scosmo@tiscalinet.it (Giuseppe) wrote:

Hello,
I have another weird question for you! Do you know if is it possible
to launch a skill function every time I use a particular library? I
tried the libInit.il file but this launchs the skill procedure only
one time. Is there another solution to the problem?

Thanks,

Giuseppe
Giuseppe,

You can use ddRegTrigger for this, with the "PreObjAccess" trigger.

procedure(MYobjTrigger(lib cell view file context mode)
when(lib
printf("Accessed something from library %L\n" lib)
)
t
)

ddRegTrigger("PreObjAccess" 'MYobjTrigger 1)

Note, there is no such thing as "using" a library - the above would be
triggered any time you access anything from that library. You'd need to be
very careful that you don't impact performance.

What in particular do you need this for?

Regards,

Andrew.
 

Welcome to EDABoard.com

Sponsor

Back
Top