[aspectc-user] argument capturing

Jamal Siadat siadat at cpsc.ucalgary.ca
Wed May 11 01:13:28 CEST 2005


Hi,
I want to be able to capture the values for a particular class method
which I have an around() advice on. I have tried tjp->arg, but it doesn't
seem to do the trick and seems to return a memory location which I cant
dereference. Here is what I mean:

class A has the following method:

int a(int i, float b);
and it is callied during the program with the following values
a(22, 44.1);
I want to capture those calues and manupilate them in the advice, as
mentioned I tried tjp->arg but it doesnt do the trick. How else can I go
about this?

the advice:
advice execution("int A::a(...)") : around()  {

Thanks in advance,







More information about the aspectc-user mailing list