aboutsummaryrefslogtreecommitdiffstats
path: root/src/examples/eo/isa/eo_isa_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples/eo/isa/eo_isa_main.c')
-rw-r--r--src/examples/eo/isa/eo_isa_main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/examples/eo/isa/eo_isa_main.c b/src/examples/eo/isa/eo_isa_main.c
index 567ef32542..5cfbe5ded1 100644
--- a/src/examples/eo/isa/eo_isa_main.c
+++ b/src/examples/eo/isa/eo_isa_main.c
@@ -13,8 +13,10 @@ main(int argc, char *argv[])
(void) argv;
eo_init();
- Eo *simpleobj = eo_add(SIMPLE_CLASS, NULL);
- Eo *complexobj = eo_add(COMPLEX_CLASS, NULL);
+ Eo *simpleobj;
+ eo_add(simpleobj, SIMPLE_CLASS, NULL);
+ Eo *complexobj;
+ eo_add(complexobj, COMPLEX_CLASS, NULL);
printf("Simple: isa-simple:%d isa-complex:%d isa-mixin:%d isa-interface:%d\n",
eo_isa(simpleobj, SIMPLE_CLASS),