[aspectc-user] A question about Args()

Olaf Spinczyk os at aspectc.org
Thu Mar 31 10:59:18 CEST 2011


Hi!

What do you mean with "multi argument function" -- functions with a 
variable argument list, e.g. int p(const char*, ...), or functions with 
more than one argument, e.g. void q(int, double)? It would help if you 
posted a short code fragment that illustrates your problem.

The args pointcut punction does not match the execution of functions 
with a variable argument list. However, it matches calls of functions 
with variable argument lists if the number of  arguments given in the 
call expression matches.

Alternatively, you can use the Joinpoint API to access arguments from 
within advice code.

Best regards,

Olaf


On 03/30/2011 10:46 AM, sh jalilian wrote:
> hi
> I am new in AspectC++ and I want to use Args() function to detect some 
> multi argument functions in a pointcut and use  argument value of that 
> functions, but it works only with single argument functions. Could 
> anyone help me?
> Thanks
>
>
> _______________________________________________
> aspectc-user mailing list
> aspectc-user at aspectc.org
> http://www.aspectc.org/mailman/listinfo/aspectc-user
>    

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.aspectc.org/pipermail/aspectc-user/attachments/20110331/46eb59f3/attachment.html>


More information about the aspectc-user mailing list