| 1 |
#ifndef __EXAMPLE_AH__ |
| 2 |
#define __EXAMPLE_AH__ |
| 3 |
|
| 4 |
#include <iostream> |
| 5 |
|
| 6 |
aspect Example { |
| 7 |
|
| 8 |
advice execution("void give_int(%)") : before() { |
| 9 |
//print first parameter of give_int() |
| 10 |
std::cout << *tjp->arg<0>() << std::endl; |
| 11 |
} |
| 12 |
|
| 13 |
}; |
| 14 |
|
| 15 |
#endif |