eolian/generator: use a temporary variable for return in legacy impls

This is so that portability updates to eo_do can be done.
This commit is contained in:
Daniel Kolesa 2015-02-23 15:30:15 +00:00
parent e5eea68ead
commit 5288b73d5c
1 changed files with 3 additions and 1 deletions

View File

@ -30,7 +30,9 @@ tmpl_eapi_body[] ="\
EAPI @#ret_type\n\
@#eapi_func(@#full_params)\n\
{\n\
return eo_do(@#eo_obj, @#eo_func(@#eo_params));\n\
@#ret_type ret;\n\
eo_do(@#eo_obj, ret = @#eo_func(@#eo_params));\n\
return ret;\n\
}\n\
";
static const char