#ifndef __Derived_ah__ #define __Derived_ah__ #include #include "Base.ah" #include "C.h" aspect Derived : public Base { // make the base aspect introduce something into "C" pointcut target () = "C"; advice execution (target ()) : before () { printf ("before %s\n", JoinPoint::signature ()); } }; #endif // __Derived_ah__