| 1 |
#ifndef __HELLO_AH__ |
| 2 |
#define __HELLO_AH__ |
| 3 |
|
| 4 |
#include <iostream> |
| 5 |
|
| 6 |
aspect Hello { |
| 7 |
|
| 8 |
advice call("void world()") : before() { |
| 9 |
//print "Hello" when calling the 'world()' function |
| 10 |
std::cout << "Hello" << std::endl; |
| 11 |
} |
| 12 |
|
| 13 |
}; |
| 14 |
|
| 15 |
#endif |