forked from enlightenment/efl
Summary: efl_new(CLASS), i.e., without initializers, never worked before. The problem is the dangling comma: efl_add_ref(klass, NULL, ); Fortunately the C preprocessor concatenation operator # # has a special case just for this occasion: When you do A ## B, and A is a comma and B is empty, it removes also A. https://gcc.gnu.org/onlinedocs/cpp/Variadic-Macros.html This trick is already in use in several other EFL headers using variadic macros. Reviewers: zmike, bu5hm4n, devilhorns, herdsman Reviewed By: zmike Subscribers: cedric, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D6553 |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
Eo.h | ||
efl_class.eo | ||
efl_interface.eo | ||
efl_object.eo | ||
efl_object_override.eo | ||
eina_types.eot | ||
eo.c | ||
eo_add_fallback.c | ||
eo_add_fallback.h | ||
eo_base_class.c | ||
eo_class_class.c | ||
eo_internal.h | ||
eo_private.h | ||
eo_ptr_indirection.c | ||
eo_ptr_indirection.h | ||
eo_ptr_indirection.x |