eo: Correctly name Realized classes.

The previous preprocessor rule was generating strings like
"\"Efl.App\"_Realized.

Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D8527
This commit is contained in:
Lauro Moura 2019-04-01 22:06:20 +00:00 committed by Marcel Hollerbach
parent fe54a4dd1a
commit 683958ee68
2 changed files with 8 additions and 1 deletions

View File

@ -47,7 +47,7 @@ EAPI void ___efl_ref2_reset(const Eo *obj_id);
#define EFL_CLASS_SIMPLE_CLASS(FUNC, NAME, ABSTRACT_CLASS) \ #define EFL_CLASS_SIMPLE_CLASS(FUNC, NAME, ABSTRACT_CLASS) \
static const Efl_Class_Description FUNC ##_realized_class_desc = { \ static const Efl_Class_Description FUNC ##_realized_class_desc = { \
EO_VERSION, \ EO_VERSION, \
#NAME"_Realized", \ NAME "_Realized", \
EFL_CLASS_TYPE_REGULAR, \ EFL_CLASS_TYPE_REGULAR, \
0, NULL, NULL, NULL \ 0, NULL, NULL, NULL \
}; \ }; \

View File

@ -93,8 +93,15 @@ EFL_START_TEST(efl_app_test_efl_loop_concentric)
} }
EFL_END_TEST EFL_END_TEST
EFL_START_TEST(efl_loop_test_realized_name)
{
ck_assert_str_eq(efl_class_name_get(efl_loop_realized_class_get()), "Efl.Loop_Realized");
}
EFL_END_TEST
void efl_app_test_efl_loop(TCase *tc) void efl_app_test_efl_loop(TCase *tc)
{ {
tcase_add_test(tc, efl_app_test_efl_loop_register); tcase_add_test(tc, efl_app_test_efl_loop_register);
tcase_add_test(tc, efl_app_test_efl_loop_concentric); tcase_add_test(tc, efl_app_test_efl_loop_concentric);
tcase_add_test(tc, efl_loop_test_realized_name);
} }