aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/eo/function_overrides/function_overrides_inherit2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/eo/function_overrides/function_overrides_inherit2.c')
-rw-r--r--src/tests/eo/function_overrides/function_overrides_inherit2.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/tests/eo/function_overrides/function_overrides_inherit2.c b/src/tests/eo/function_overrides/function_overrides_inherit2.c
index e250ee3d2c..9e2cd933ee 100644
--- a/src/tests/eo/function_overrides/function_overrides_inherit2.c
+++ b/src/tests/eo/function_overrides/function_overrides_inherit2.c
@@ -15,11 +15,11 @@ static void
_a_set(Eo *obj, void *class_data EINA_UNUSED, int a)
{
printf("%s %d\n", eo_class_name_get(MY_CLASS), a);
- eo_do(obj, simple_a_print());
- eo_do_super(obj, MY_CLASS, simple_a_set(a + 1));
+ eo_do(obj, simple_a_print(obj));
+ eo_super_simple_a_set(MY_CLASS, obj, a + 1);
Eina_Bool called = EINA_FALSE;
- eo_do_super(obj, MY_CLASS, called = simple_a_print());
+ called = eo_super_simple_a_print(MY_CLASS, obj);
fail_if(!called);
}
@@ -28,7 +28,7 @@ _print(Eo *obj, void *class_data EINA_UNUSED)
{
Eina_Bool called = EINA_FALSE;
printf("Hey\n");
- eo_do_super(obj, MY_CLASS, called = inherit2_print());
+ called = eo_super_inherit2_print(MY_CLASS, obj);
fail_if(called);
return EINA_TRUE;
@@ -47,17 +47,17 @@ _class_print(Eo_Class *klass, void *data EINA_UNUSED)
{
Eina_Bool called = EINA_FALSE;
printf("Print %s-%s\n", eo_class_name_get(klass), eo_class_name_get(MY_CLASS));
- eo_do_super(klass, MY_CLASS, called = simple_class_print());
+ called = eo_super_simple_class_print(MY_CLASS, klass);
fail_if(!called);
- eo_do_super(klass, MY_CLASS, called = simple_class_print2());
+ called = eo_super_simple_class_print2(MY_CLASS, klass);
fail_if(!called);
return EINA_TRUE;
}
-EAPI EO_FUNC_BODY(inherit2_print, Eina_Bool, EINA_FALSE);
-EAPI EO_FUNC_BODY(inherit2_print2, Eina_Bool, EINA_FALSE);
+EAPI EO_FUNC_API_DEFINE(inherit2_print, Eina_Bool, EINA_FALSE,);
+EAPI EO_FUNC_API_DEFINE(inherit2_print2, Eina_Bool, EINA_FALSE,);
static Eo_Op_Description op_descs[] = {
EO_OP_FUNC(inherit2_print, _print),