efl/src/lib/eo
Xavi Artigas 1de1f6d8fb eo: Fix efl_new without initializing parameters
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
2018-07-12 09:32:42 -04:00
..
CMakeLists.txt cmake/eo: add description (fills eo.pc file) 2017-01-23 19:34:39 -02:00
Eo.h eo: Fix efl_new without initializing parameters 2018-07-12 09:32:42 -04:00
efl_class.eo
efl_interface.eo eo: Update grammar and readability 2017-12-20 09:52:31 +00:00
efl_object.eo eo: efl_del should not be something anyone can override this can break so many things. 2018-05-24 16:02:19 -07:00
efl_object_override.eo Efl.Object_Override (from Efl.Object.Override) 2018-04-24 09:03:47 -07:00
eina_types.eot efl: Add missing event types 2018-05-19 01:42:26 +02:00
eo.c eo: improve thread check during class construction 2018-06-29 11:31:10 -04:00
eo_add_fallback.c mmap memory allocation - do not used when under valgrind 2018-01-12 03:02:43 +09:00
eo_add_fallback.h
eo_base_class.c eo/base_class: explicitly refuse to set an object as its own parent 2018-07-05 15:11:55 -04:00
eo_class_class.c
eo_internal.h eo: move EFL internal function ___efl_ref2 also to eo_internal.h 2018-05-24 16:02:18 -07:00
eo_private.h eo: improve thread check during class construction 2018-06-29 11:31:10 -04:00
eo_ptr_indirection.c eo: Improve invalid EO ID error message 2017-06-22 13:19:23 +09:00
eo_ptr_indirection.h eo: Add debug_name read-only property to ease debugging 2017-08-04 10:24:03 +09:00
eo_ptr_indirection.x mmap memory allocation - do not used when under valgrind 2018-01-12 03:02:43 +09:00