Debian Codegraph @

AspectC++/doc/CompilerManual/aspectc++ code transformation/examples/ah_call/hello.ah

raw
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