diff --git a/src/bin/eolian_mono/eolian/mono/events.hh b/src/bin/eolian_mono/eolian/mono/events.hh index 0522a9be7a..9b4b8c362f 100644 --- a/src/bin/eolian_mono/eolian/mono/events.hh +++ b/src/bin/eolian_mono/eolian/mono/events.hh @@ -102,7 +102,13 @@ struct unpack_event_args_visitor if (eina::optional b = call_match(match_table, filter_func, accept_func)) return *b; else - return as_generator("default(" + arg_type + ")").generate(sink, attributes::unused, *context); + { + // Type defined in Eo is passed here. (e.g. enum type defined in Eo) + // Uses conversion from IntPtr with type casting to the given type. + return as_generator( + " (" << arg_type << ")evt.Info" + ).generate(sink, attributes::unused, *context); + } } bool operator()(grammar::attributes::klass_name const& cls) const {