Eo: Add eo_do_part.
authorTom Hacohen <tom@stosb.com>
Fri, 17 Apr 2015 13:31:19 +0000 (14:31 +0100)
committerTom Hacohen <tom@stosb.com>
Wed, 6 May 2015 16:56:05 +0000 (17:56 +0100)
commit6cb22bae35a8e621e0857fc2738657ff068478f8
treeb6a9d95a7907803517ab3883fd51546464e3facc
parent875bc1514604dca87f19270694bcede4b2434dc2
Eo: Add eo_do_part.

This is a convenience macro to be used by the common pattern of getting
a part and then immediately calling functions on it. For example,
  without this macro, you'd have to write code like:

Eo *part;
eo_do(obj, part = efl_part_name_get("partname"));
eo_do(part, a_set(7));

while using the helper function trims it to:

eo_do_part(obj, efl_part_name_get("partname"), a_set(7));

@feature
src/lib/eo/Eo.h
src/tests/eo/suite/eo_test_class_simple.c
src/tests/eo/suite/eo_test_class_simple.h
src/tests/eo/suite/eo_test_general.c