eolian: beta funcs generation

This commit is contained in:
Daniel Kolesa 2015-05-08 14:17:20 +01:00
parent 2bd6c423d7
commit 5726cf3b0f
1 changed files with 4 additions and 0 deletions

View File

@ -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();