One Approach to Aspect-Oriented Programming Implementation for the C Programming Language
Evgeny Novikov · Proceedings of the Spring/Summer young researchers' colloquium on software engineering · 2011
An aspect consisting of a named pointcut // and an advice.aspect Logging { // A named pointcut that matches a join // points set of method calls.pointcut move(): call(void FigureElement.setXY(int,int)) || call(void Point.setX(int))|| call(void Point.setY(int));// An advice performing some actions before // execution of a matched by the given named // pointcut program point.before(): move() { System.out.println("about to move"); } }