Commit | Line | Data |
---|---|---|
1 | /* foo */ | |
2 | ||
3 | code c : includes { | |
4 | #include "foo.h" | |
5 | } | |
6 | ||
7 | code h : includes { | |
8 | #include "sod.h" | |
9 | } | |
10 | ||
11 | //[link = SodObject] | |
12 | class Test : SodObject { | |
13 | int x = 0; | |
14 | ||
15 | int cur() { return me->test.x; } | |
16 | void inc() { me->test.x++; } | |
17 | void dec() { me->test.x--; } | |
18 | } | |
19 | ||
20 | [link = Test, nick = snd] | |
21 | class Second : Test { | |
22 | void test.dec() { me->test.x -= 3; } | |
23 | } |