q66 pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=6c7e5b0a86f60b321c49cb213c70976aa9f4c747

commit 6c7e5b0a86f60b321c49cb213c70976aa9f4c747
Author: Daniel Kolesa <[email protected]>
Date:   Fri Aug 29 10:17:55 2014 +0100

    eolian: require both set and get to be specified when whole property is in 
impls
---
 src/lib/eolian/database_implement_api.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/src/lib/eolian/database_implement_api.c 
b/src/lib/eolian/database_implement_api.c
index d668b3f..052df7e 100644
--- a/src/lib/eolian/database_implement_api.c
+++ b/src/lib/eolian/database_implement_api.c
@@ -90,6 +90,17 @@ eolian_implement_function_get(const Eolian_Implement *impl,
    const Eolian_Function *fid = eolian_class_function_get_by_name(klass,
                                                                   func_name,
                                                                   tp);
+
+   if (fid && tp == EOLIAN_UNRESOLVED && (fid->type == EOLIAN_PROP_GET
+                                       || fid->type == EOLIAN_PROP_SET))
+     {
+        eina_log_print(_eolian_log_dom, EINA_LOG_LEVEL_ERR,
+            impl->base.file, "", impl->base.line, "both get and set required "
+              "for property '%s' at column %d", func_name, impl->base.column);
+        free(func_name);
+        return NULL;
+     }
+
    free(func_name);
 
    if (func_type)

-- 


Reply via email to