summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2015-05-08 14:17:20 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-05-08 14:19:02 +0100
commit5726cf3b0f1a40b8816ebbbc8be4a8a0a3d32562 (patch)
tree4e9b9c8d7e35e13c9674c33145813f9113e28c74
parent2bd6c423d7129aa945ccf2e0e6fa7194f6a9d60f (diff)
downloadefl-5726cf3b0f1a40b8816ebbbc8be4a8a0a3d32562.tar.gz
eolian: beta funcs generation
-rw-r--r--src/bin/eolian/eo_generator.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bin/eolian/eo_generator.c b/src/bin/eolian/eo_generator.c
index cb57fe89ab..a6b9d817e3 100644
--- a/src/bin/eolian/eo_generator.c
+++ b/src/bin/eolian/eo_generator.c
@@ -105,6 +105,8 @@ eo_fundef_generate(const Eolian_Class *class, const Eolian_Function *func, Eolia
eina_iterator_free(itr);
}
Eina_Strbuf *str_func = eina_strbuf_new();
+ if (eolian_function_is_beta(func))
+ eina_strbuf_append_printf(str_func, "#ifdef %s_BETA\n");
if (scope == EOLIAN_SCOPE_PROTECTED)
eina_strbuf_append_printf(str_func, "#ifdef %s_PROTECTED\n", class_env.upper_classname);
@@ -113,6 +115,8 @@ eo_fundef_generate(const Eolian_Class *class, const Eolian_Function *func, Eolia
if (scope == EOLIAN_SCOPE_PROTECTED)
eina_strbuf_append_printf(str_func, "#endif\n");
+ if (eolian_function_is_beta(func))
+ eina_strbuf_append_printf(str_func, "#endif\n");
eina_strbuf_append_printf(str_func, "\n");
Eina_Strbuf *linedesc = eina_strbuf_new();