summaryrefslogtreecommitdiff
path: root/src/lib/eolian_cxx/grammar/class_implementation.hpp
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-11-22 20:16:21 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-12-05 10:14:03 +0900
commita787c3cc07b8ddcc3288091a9d1b9e0eb06582bc (patch)
tree9f4ccf771a601d1c8bdb6cbb33287e3ac89f7bb1 /src/lib/eolian_cxx/grammar/class_implementation.hpp
parent12d50cbe1938a096e8c06674d7b8ee8c33d5c335 (diff)
cxx: Only use eo_cxx:: for methods
Add an experimental (disabled) macro to only generate functions inside the eo_cxx equivalent of a class, instead of inside both the eo_cxx and the normal class definition. I guess the duplicated definition had something to do with doxygen, but I'm not sure this is quite necessary as doc will be generated with custom scripts.
Diffstat (limited to 'src/lib/eolian_cxx/grammar/class_implementation.hpp')
-rw-r--r--src/lib/eolian_cxx/grammar/class_implementation.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/eolian_cxx/grammar/class_implementation.hpp b/src/lib/eolian_cxx/grammar/class_implementation.hpp
index 0731e3d591..b2578b5bf2 100644
--- a/src/lib/eolian_cxx/grammar/class_implementation.hpp
+++ b/src/lib/eolian_cxx/grammar/class_implementation.hpp
@@ -27,12 +27,14 @@ struct class_implementation_generator
27 auto class_name = *(lit("::") << lower_case[string]) << "::" << string; 27 auto class_name = *(lit("::") << lower_case[string]) << "::" << string;
28 return as_generator 28 return as_generator
29 ( 29 (
30#ifndef USE_EOCXX_INHERIT_ONLY
30 (namespaces 31 (namespaces
31 [*function_definition(get_klass_name(cls))] 32 [*function_definition(get_klass_name(cls))]
32 << "\n" 33 << "\n"
33 )).generate(sink, std::make_tuple(cls.namespaces, cls.functions), ctx) 34 )).generate(sink, std::make_tuple(cls.namespaces, cls.functions), ctx)
34 && as_generator 35 && as_generator
35 ( 36 (
37#endif
36 attribute_reorder<0, 1, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3> 38 attribute_reorder<0, 1, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3>
37 ( 39 (
38 "namespace eo_cxx {\n" 40 "namespace eo_cxx {\n"