forked from enlightenment/efl
Eolian: Fix generation of Eo APIs.
When return is forced to void, even if the function contains only one parameter, the return type will be void.
This commit is contained in:
parent
ca6e6c93f5
commit
1a48d11fb9
|
@ -167,7 +167,6 @@ eo1_fundef_generate(const char *classname, Eolian_Function func, Eolian_Function
|
|||
|
||||
char *fsuffix = "";
|
||||
rettype = eolian_function_return_type_get(func, ftype);
|
||||
if (rettype && !strcmp(rettype, "void")) rettype = NULL;
|
||||
if (ftype == EOLIAN_PROP_GET)
|
||||
{
|
||||
fsuffix = "_get";
|
||||
|
@ -468,7 +467,6 @@ eo1_bind_func_generate(const char *classname, Eolian_Function funcid, Eolian_Fun
|
|||
Eina_Strbuf *full_params = eina_strbuf_new(); /* variables types + names */
|
||||
|
||||
rettype = eolian_function_return_type_get(funcid, ftype);
|
||||
if (rettype && !strcmp(rettype, "void")) rettype = NULL;
|
||||
retname = "ret";
|
||||
if (ftype == EOLIAN_PROP_GET)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue