summaryrefslogtreecommitdiff
path: root/src/bin/eolian_mono
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2018-01-22 14:56:38 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2018-01-25 15:27:05 -0300
commiteaf41d9bcebf4ebf9ede38c42f7c2957f6024504 (patch)
treecd9045fbebdc402e70548829360322f98d51ca60 /src/bin/eolian_mono
parent4cd760c9a7f806614f929cf435f99bc2436527fa (diff)
eolian_mono: Fix event argument for strings
Diffstat (limited to 'src/bin/eolian_mono')
-rw-r--r--src/bin/eolian_mono/eolian/mono/klass.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/klass.hh b/src/bin/eolian_mono/eolian/mono/klass.hh
index 8657faf573..003f59f746 100644
--- a/src/bin/eolian_mono/eolian/mono/klass.hh
+++ b/src/bin/eolian_mono/eolian/mono/klass.hh
@@ -116,6 +116,10 @@ struct get_event_args_visitor
116 typedef std::string result_type; 116 typedef std::string result_type;
117 std::string operator()(grammar::attributes::regular_type_def const&) const 117 std::string operator()(grammar::attributes::regular_type_def const&) const
118 { 118 {
119 if (arg_type == "string")
120 {
121 return "eina.StringConversion.NativeUtf8ToManagedString(evt.Info)";
122 }
119 return "(" + arg_type + ")Marshal.PtrToStructure(evt.Info, typeof(" + arg_type + "))"; 123 return "(" + arg_type + ")Marshal.PtrToStructure(evt.Info, typeof(" + arg_type + "))";
120 } 124 }
121 std::string operator()(grammar::attributes::klass_name const&) const 125 std::string operator()(grammar::attributes::klass_name const&) const