summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYeongjong Lee <yj34.lee@samsung.com>2019-10-24 18:24:07 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2019-10-24 18:34:30 -0300
commit1158775084bfb5ae9a6382cb2e99b7bd3c5fafb7 (patch)
tree2e5672551e5b6e0bd1bec98b2256a592e022b75b
parentf33183ba04d6f71938f26850c1bf45d5dfbf3686 (diff)
eina_mono: Initialize UNHANDLED_EXCEPTION inline
Summary: fix CA2207 ref T8427 Test Plan: meson setup -Dbindings=mono,cxx -Dmono-beta=true ninja test Reviewers: lauromoura, felipealmeida, brunobelo Reviewed By: lauromoura Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T8427 Differential Revision: https://phab.enlightenment.org/D10463
-rw-r--r--src/bindings/mono/eina_mono/eina_error.cs7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/bindings/mono/eina_mono/eina_error.cs b/src/bindings/mono/eina_mono/eina_error.cs
index ea73ee54f7..5c4ac9345b 100644
--- a/src/bindings/mono/eina_mono/eina_error.cs
+++ b/src/bindings/mono/eina_mono/eina_error.cs
@@ -41,7 +41,7 @@ public struct Error : IComparable<Error>
41 /// Unhandled Exception error identifier. 41 /// Unhandled Exception error identifier.
42 /// <para>Since EFL 1.23.</para> 42 /// <para>Since EFL 1.23.</para>
43 /// </summary> 43 /// </summary>
44 public static readonly Error UNHANDLED_EXCEPTION; 44 public static readonly Error UNHANDLED_EXCEPTION = eina_error_msg_register("Unhandled C# exception occurred.");
45 45
46 /// <summary> 46 /// <summary>
47 /// No error identifier. 47 /// No error identifier.
@@ -115,11 +115,6 @@ public struct Error : IComparable<Error>
115 return "Eina.Error(" + code + ")"; 115 return "Eina.Error(" + code + ")";
116 } 116 }
117 117
118 static Error()
119 {
120 UNHANDLED_EXCEPTION = eina_error_msg_register("Unhandled C# exception occurred.");
121 }
122
123 [DllImport(efl.Libs.Eina)] static extern Error eina_error_msg_register(string msg); 118 [DllImport(efl.Libs.Eina)] static extern Error eina_error_msg_register(string msg);
124 [DllImport(efl.Libs.Eina)] static extern Error eina_error_get(); 119 [DllImport(efl.Libs.Eina)] static extern Error eina_error_get();
125 [DllImport(efl.Libs.Eina)] static extern void eina_error_set(Error error); 120 [DllImport(efl.Libs.Eina)] static extern void eina_error_set(Error error);