#ifndef __Aspect__ #define __Aspect__ #include aspect Aspect { advice call("% %::foo()"||"% bar()") : before() { printf("%s\n", JoinPoint::signature()); } }; #endif /* __Aspect__ */