summaryrefslogtreecommitdiff
path: root/src/bin/eolian/eo_generator.c
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-08-29 15:30:51 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-08-29 15:30:51 +0100
commit4785353baf0ff956e05a451bbea5b0035a5e7a0f (patch)
treeb0538cf8a8ef851dd6763c60c37e78a60a68e98d /src/bin/eolian/eo_generator.c
parentb05f73867546c9a552f85be358163fc021c0ca3f (diff)
eolian: APIs to check if an implement references get/set
Diffstat (limited to 'src/bin/eolian/eo_generator.c')
-rw-r--r--src/bin/eolian/eo_generator.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/bin/eolian/eo_generator.c b/src/bin/eolian/eo_generator.c
index 9826d4ae72..c4cc89c54c 100644
--- a/src/bin/eolian/eo_generator.c
+++ b/src/bin/eolian/eo_generator.c
@@ -661,6 +661,8 @@ eo_source_end_generate(const Eolian_Class *class, Eina_Strbuf *buf)
661 const char *rets; 661 const char *rets;
662 char *tp = implname; 662 char *tp = implname;
663 663
664 const char *names[] = { "", "getter ", "setter " };
665
664 if ((impl_class = eolian_implement_class_get(impl_desc))) 666 if ((impl_class = eolian_implement_class_get(impl_desc)))
665 { 667 {
666 fnid = eolian_implement_function_get(impl_desc, &ftype); 668 fnid = eolian_implement_function_get(impl_desc, &ftype);
@@ -673,8 +675,10 @@ eo_source_end_generate(const Eolian_Class *class, Eina_Strbuf *buf)
673 675
674 if (!fnid) 676 if (!fnid)
675 { 677 {
676 ERR ("Failed to generate implementation of %s - missing form super class", 678 const char *name = names[eolian_implement_is_prop_get(impl_desc)
677 eolian_implement_full_name_get(impl_desc)); 679 | (eolian_implement_is_prop_set(impl_desc) << 1)];
680 ERR ("Failed to generate implementation of %s%s - missing form super class",
681 name, eolian_implement_full_name_get(impl_desc));
678 goto end; 682 goto end;
679 } 683 }
680 684