forked from enlightenment/efl
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
This commit is contained in:
parent
f33183ba04
commit
1158775084
|
@ -41,7 +41,7 @@ public struct Error : IComparable<Error>
|
|||
/// Unhandled Exception error identifier.
|
||||
/// <para>Since EFL 1.23.</para>
|
||||
/// </summary>
|
||||
public static readonly Error UNHANDLED_EXCEPTION;
|
||||
public static readonly Error UNHANDLED_EXCEPTION = eina_error_msg_register("Unhandled C# exception occurred.");
|
||||
|
||||
/// <summary>
|
||||
/// No error identifier.
|
||||
|
@ -115,11 +115,6 @@ public struct Error : IComparable<Error>
|
|||
return "Eina.Error(" + code + ")";
|
||||
}
|
||||
|
||||
static Error()
|
||||
{
|
||||
UNHANDLED_EXCEPTION = eina_error_msg_register("Unhandled C# exception occurred.");
|
||||
}
|
||||
|
||||
[DllImport(efl.Libs.Eina)] static extern Error eina_error_msg_register(string msg);
|
||||
[DllImport(efl.Libs.Eina)] static extern Error eina_error_get();
|
||||
[DllImport(efl.Libs.Eina)] static extern void eina_error_set(Error error);
|
||||
|
|
Loading…
Reference in New Issue