I newer in AspectC and I need help.<br><br>My Problem: <br><br>1- someMethod don't have a class <br>2- callMethod is a member of Abstractions*.<br><br>Something like this:<br><br>void someMethod(A* m, int i)<br>{<br> <br>
Abstractions* m = (Abstractions*)A;<br> m->callMethod(i);<br>}<br><br>I'm trying to do this:<br><br><br>aspect SomethingBefore {<br> <br> pointcut calls() =<br> call("% %::%(...)"); <br> <br>
advice calls() : before() {<br> cout<<"do something"<<endl;<br> } <br> <br> <br>};<br><br>What's wrong? What I have to do to intercepted the m->callMethod(i) ??? thxs for any help !
<br>