summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-04-15 13:52:32 +0100
committerTom Hacohen <tom@stosb.com>2016-04-15 13:53:02 +0100
commit7c5f81d30f8f2960862daf912a833a096cef6c6b (patch)
tree4bb08326c9b032e031e9d3dec9caf42a7882f9d7
parent6d135944beb79782d0e5ddd69a23fa5fedd5ee2e (diff)
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.
-rw-r--r--src/lib/eo/Eo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eo/Eo.h b/src/lib/eo/Eo.h
index c2c7d4c168..194665013a 100644
--- a/src/lib/eo/Eo.h
+++ b/src/lib/eo/Eo.h
@@ -627,7 +627,7 @@ EAPI Eo *_eo_self_get(void);
627# define _eo_add_common(klass, parent, is_ref, ...) \ 627# define _eo_add_common(klass, parent, is_ref, ...) \
628 ({ \ 628 ({ \
629 Eo * const __eo_self = _eo_add_internal_start(__FILE__, __LINE__, klass, parent, is_ref, EINA_FALSE); \ 629 Eo * const __eo_self = _eo_add_internal_start(__FILE__, __LINE__, klass, parent, is_ref, EINA_FALSE); \
630 __VA_ARGS__; \ 630 (void) (0, ##__VA_ARGS__); \
631 (Eo *) _eo_add_end(eo_self, EINA_FALSE); \ 631 (Eo *) _eo_add_end(eo_self, EINA_FALSE); \
632 }) 632 })
633 633