Follow the rest of efl and use ENOMEM from now on. This avoids ugly deprecation
warnings.
}
catch(std::bad_alloc const& e)
{
- eina_error_set( ::EINA_ERROR_OUT_OF_MEMORY);
+ eina_error_set(ENOMEM);
}
catch(std::system_error const& e)
{
std::cout << "waited" << std::endl;
}
- ck_assert( ::eina_error_get() == ::EINA_ERROR_OUT_OF_MEMORY);
+ ck_assert( ::eina_error_get() == ENOMEM);
::eina_error_set(0);
std::cout << "end of ecore_cxx_safe_call_async" << std::endl;
}
(
[] () -> int
{
- ::eina_error_set( ::EINA_ERROR_OUT_OF_MEMORY);
+ ::eina_error_set(ENOMEM);
return 0;
}
);
ck_assert(ec2.message() == "Message 1");
- ::eina_error_set(EINA_ERROR_OUT_OF_MEMORY);
+ ::eina_error_set(ENOMEM);
efl::eina::error_code ec3 = efl::eina::get_error_code();
ck_assert(!!ec3);