Eo: Make sure semi-colons and other directives aren't used in eo_add.

This was already enforced in the legacy version but was not enforced in
the GCC extension version. This change makes sure it's disallowed in
both.
This commit is contained in:
Tom Hacohen 2016-04-15 13:52:32 +01:00
parent 6d135944be
commit 7c5f81d30f
1 changed files with 1 additions and 1 deletions

View File

@ -627,7 +627,7 @@ EAPI Eo *_eo_self_get(void);
# define _eo_add_common(klass, parent, is_ref, ...) \
({ \
Eo * const __eo_self = _eo_add_internal_start(__FILE__, __LINE__, klass, parent, is_ref, EINA_FALSE); \
__VA_ARGS__; \
(void) (0, ##__VA_ARGS__); \
(Eo *) _eo_add_end(eo_self, EINA_FALSE); \
})