[aspectc-user] cflowbelow

Bartosz Blimke masb at chorwacja.com
Tue May 25 13:46:46 CEST 2004


I'm trying to intercept the top level execution of function
for example for some recursive function, I want to intercept
only the instance of the function in the bottom of the stack.

for this in AspectJ I would use:

pointcut myPointcut = execution("% myFunction(...)");

pointcut topLevelExecutionOfFunction() =
               myPointcut() && !cflowbelow(myPointcut());

In AspectC++ there is only cflow()

Are there some plans to insert cflowbelow into AspectC++ or
maybe you know some other trick to deal with my problem ?

Bartosz Blimke
masb at chorwacja.com

More information about the aspectc-user mailing list