summaryrefslogtreecommitdiff
path: root/src/examples/eo/simple/simple_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples/eo/simple/simple_main.c')
-rw-r--r--src/examples/eo/simple/simple_main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/examples/eo/simple/simple_main.c b/src/examples/eo/simple/simple_main.c
index 2ee7ee4..fc6d060 100644
--- a/src/examples/eo/simple/simple_main.c
+++ b/src/examples/eo/simple/simple_main.c
@@ -14,13 +14,13 @@ main(int argc, char *argv[])
14 14
15 Eo *obj = eo_add(SIMPLE_CLASS, NULL); 15 Eo *obj = eo_add(SIMPLE_CLASS, NULL);
16 16
17 eo_do(obj, simple_a_set(4)); 17 simple_a_set(obj, 4);
18 18
19 int a = 0, a2 = 0, a3 = 0; 19 int a = 0, a2 = 0, a3 = 0;
20 20
21 eo_do(obj, a = simple_a_get(), 21 a = simple_a_get(obj);
22 a3 = interface_a_power_3_get(), 22 a3 = interface_a_power_3_get(obj);
23 a2 = mixin_a_square_get()); 23 a2 = mixin_a_square_get(obj);
24 24
25 printf("Got %d %d %d\n", a, a2, a3); 25 printf("Got %d %d %d\n", a, a2, a3);
26 26