~siretart/aspectc++/debian

« back to all changes in this revision

Viewing changes to AspectC++/tests/Forward/Aspect.ah

  • Committer: Reinhard Tartler
  • Date: 2013-10-13 18:22:49 UTC
  • mfrom: (1.2.8)
  • Revision ID: siretart@tauware.de-20131013182249-fv725vy5ikslptpj
new upstream relesae

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
aspect Aspect {
8
8
  pointcut both () = "Forward"||"Backward";
9
 
  advice both () : int _val;
10
 
public:
11
 
  advice both () : void introduced () {
12
 
    _val = 0;
13
 
  }
 
9
  advice both () : slice class {
 
10
    int _val;
 
11
  public:
 
12
    void introduced () {
 
13
      _val = 0;
 
14
    }
 
15
  };
14
16
  advice within (both ()) && execution ("% %::introduced()") &&
15
17
    that (fwd) : before (Forward *fwd) {
16
18
    printf ("before %s\n", JoinPoint::signature ());