Debian Codegraph @

AspectC++/doc/CompilerManual/aspectc++ code transformation/examples/ah_builtin/hello_world.ah

raw
1 #ifndef __WORLD_AH__
2 #define __WORLD_AH__
3
4 #include <iostream>
5 #include <string>
6
7 aspect Hello{
8
9 advice builtin("% operator =(%,%)") : before() {
10 //print "Hello World" before the '!' is assigned
11 std::cout << "Hello World";
12 }
13
14 };
15
16 #endif