add returned value by default(error) to edje_object_part_external_param_type_get()
API regarding to documentation (should return ENUM(5) if error)
Details
Diff Detail
- Repository
- rEFL core/efl
- Branch
- master
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 2910 Build 2975: arc lint + arc unit
Isn't it possible to get the enum instead of the numerical value as the default value ?
Just tested,
return: Edje.External.Param_Type(Edje.External.Param_Type.max);
works just fine with no compilation errors.
Anyway, fixed in b74dd5b7f4ae4a91555f590225a57896e1cd19e9, please abandon the revision.
yes, it works @artem.popov - if you had it expand to 0, this was before the recent bug fixes in the Eolian expression handling code (unlike previously, Eolian now fully validates all expressions and whether they match their data type, instead of silently expanding to 0 - but the particular 0 expansion previously was caused by a bug in the expr evaluator). If you still have it happening, a locally installed libeolian is probably at fault - autotools somehow prefers system libs as dependencies instead of the in-tree ones. The above fix expands to this with properly updated EFL:
EOAPI EFL_FUNC_BODYV_CONST(edje_obj_part_external_param_type_get, Edje_External_Param_Type, 5 /* Edje.External.Param_Type.max */, EFL_FUNC_CALL(part, param), const char *part, const char *param);
which is obviously correct - it evaluates to the right value and puts a comment next to it what it means.