summaryrefslogtreecommitdiff
path: root/src/lib/eolian_cxx/grammar/type.hpp
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2017-11-23 21:47:25 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2017-12-04 15:47:49 -0300
commite6dd831f7ea57bc4717f364141be1bf197da3cc8 (patch)
treec7bcda911ee8dd6013cbbfdb6e39911cd20ca645 /src/lib/eolian_cxx/grammar/type.hpp
parent0931696a4f8584620e19ca8599feb5b7a4e9110c (diff)
eolian_cxx: Many changes for the C# bindings
- Added helper function to get all methods of a given class (local and inherited methods) - Add filename information to klass - Added new defs: enum, value (currently only integers), struct - Generator refactoring - Eolian C compatibility
Diffstat (limited to '')
-rw-r--r--src/lib/eolian_cxx/grammar/type.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/eolian_cxx/grammar/type.hpp b/src/lib/eolian_cxx/grammar/type.hpp
index 8a09b6e199..61e0e55fba 100644
--- a/src/lib/eolian_cxx/grammar/type.hpp
+++ b/src/lib/eolian_cxx/grammar/type.hpp
@@ -23,7 +23,7 @@ struct type_generator
23 template <typename OutputIterator, typename Context> 23 template <typename OutputIterator, typename Context>
24 bool generate(OutputIterator sink, attributes::parameter_def const& param, Context const& context) const 24 bool generate(OutputIterator sink, attributes::parameter_def const& param, Context const& context) const
25 { 25 {
26 return param.type.original_type.visit(visitor_generate<OutputIterator, Context>{sink, &context, param.c_type 26 return param.type.original_type.visit(visitor_generate<OutputIterator, Context>{sink, &context, param.type.c_type
27 , param.direction != attributes::parameter_direction::in, false}); 27 , param.direction != attributes::parameter_direction::in, false});
28 } 28 }
29 29
@@ -46,6 +46,8 @@ type_generator const as_generator(type_terminal)
46template <> 46template <>
47struct is_eager_generator<type_generator> : std::true_type {}; 47struct is_eager_generator<type_generator> : std::true_type {};
48template <> 48template <>
49struct is_generator<type_generator> : std::true_type {};
50template <>
49struct is_generator<type_terminal> : std::true_type {}; 51struct is_generator<type_terminal> : std::true_type {};
50 52
51namespace type_traits { 53namespace type_traits {