summaryrefslogtreecommitdiff
path: root/src/bin/eolian
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2019-02-13 18:12:59 +0100
committerXavi Artigas <xavierartigas@yahoo.es>2019-02-13 18:48:02 +0100
commit19fcd6e60fdb702ea0db4a9884c4822e624ecde4 (patch)
tree3b43c4dbbc2efd77787097d7990f0fb6d6f3ea38 /src/bin/eolian
parent6b7346b7b2b0db05e76cc217966d3304e4cbc41a (diff)
eolian: allow tagging complete classes as BETA
Summary: This allows using the @beta tag in classes, like this: class @beta Efl.Foo extends Efl.Bar { ... } This will surround the class definition in the .eo.h file with an EFL_BETA_API_SUPPORT #define, equivalent to tag every method and event with @beta. Test Plan: Nothing changes since no class uses this tag yet Reviewers: q66, bu5hm4n, zmike Reviewed By: q66 Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7933
Diffstat (limited to 'src/bin/eolian')
-rw-r--r--src/bin/eolian/headers.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bin/eolian/headers.c b/src/bin/eolian/headers.c
index 472043b..7fbd576 100644
--- a/src/bin/eolian/headers.c
+++ b/src/bin/eolian/headers.c
@@ -192,6 +192,10 @@ eo_gen_header_gen(const Eolian_State *state, const Eolian_Class *cl,
192 192
193 /* class definition */ 193 /* class definition */
194 194
195 if (!legacy && eolian_class_is_beta(cl))
196 {
197 eina_strbuf_append(buf, "#ifdef EFL_BETA_API_SUPPORT\n");
198 }
195 if (!legacy) 199 if (!legacy)
196 { 200 {
197 const Eolian_Documentation *doc = eolian_class_documentation_get(cl); 201 const Eolian_Documentation *doc = eolian_class_documentation_get(cl);
@@ -298,6 +302,10 @@ events:
298 } 302 }
299 eina_iterator_free(itr); 303 eina_iterator_free(itr);
300 } 304 }
305 if (!legacy && eolian_class_is_beta(cl))
306 {
307 eina_strbuf_append(buf, "#endif /* EFL_BETA_API_SUPPORT */\n");
308 }
301 309
302 free(cname); 310 free(cname);
303 free(cnameu); 311 free(cnameu);