summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitor Sousa <vitorsousa@expertisesolutions.com.br>2019-03-08 13:06:55 -0300
committerVitor Sousa <vitorsousa@expertisesolutions.com.br>2019-03-08 13:06:55 -0300
commit04ccdefb3bba4070e38946c070403936aaf80898 (patch)
treea0ea920851e510646b5469b4d2175ba7bc467709
parent334b1a54298c2809490cea940e579041882b8510 (diff)
downloadefl-04ccdefb3bba4070e38946c070403936aaf80898.tar.gz
eolian_csharp: fix binding of stringshare arguments in events
-rw-r--r--src/bin/eolian_mono/eolian/mono/events.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/events.hh b/src/bin/eolian_mono/eolian/mono/events.hh
index 2a2aa4c9eb..76e82bdbb1 100644
--- a/src/bin/eolian_mono/eolian/mono/events.hh
+++ b/src/bin/eolian_mono/eolian/mono/events.hh
@@ -51,6 +51,7 @@ struct unpack_event_args_visitor
, {"int", [&arg] { return arg + ".ToInt32()"; }}
, {"uint", [&arg] { return "(uint)" + arg + ".ToInt32()";}}
, {"string", [&arg] { return "Eina.StringConversion.NativeUtf8ToManagedString(" + arg + ")"; }}
+ , {"stringshare", [&arg] { return "Eina.StringConversion.NativeUtf8ToManagedString(" + arg + ")"; }}
, {"Eina.Error", [&arg] { return "(Eina.Error)Marshal.PtrToStructure(" + arg + ", typeof(Eina.Error))"; }}
};