this removes the need for the calling a Init function.
Reviewed-by: Felipe Magno de Almeida <felipe@expertisesolutions.com.br>
Differential Revision: https://phab.enlightenment.org/D7556
public static void Init() {
if (eina_init() == 0)
throw (new Efl.EflException("Failed to initialize Eina"));
-
- // Initialize the submodules here
- Eina.Error.Init();
}
public static int Shutdown() {
return "Eina.Error(" + code + ")";
}
- internal static void Init()
+ static Error()
{
UNHANDLED_EXCEPTION = eina_error_msg_register("Unhandled C# exception occurred.");
}
class TestEinaError
{
+ public static void basic_efl_error_available()
+ {
+ Test.AssertEquals(Eina.Error.UNHANDLED_EXCEPTION.Message, "Unhandled C# exception occurred.");
+ }
public static void basic_test()
{
Eina.Error.Clear();