Debian Codegraph @

AspectC++/doc/CompilerManual/aspectc++ code transformation/examples/pointcut_function/example.ah

raw
1 #ifndef __EXAMPLE_AH__
2 #define __EXAMPLE_AH__
3
4 #include <iostream>
5
6 aspect Example {
7
8 advice execution("void give_int(%)") && args(wert) : before(int wert) {
9 std::cout << wert << std::endl; // args() pointcut function
10 }
11
12 };
13
14 #endif