Commit | Line | Data |
---|---|---|
bf090e02 MW |
1 | /* foo */ |
2 | ||
9ec578d9 | 3 | code c : includes { |
bf090e02 MW |
4 | #include "foo.h" |
5 | } | |
9ec578d9 MW |
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 | } |