forked from enlightenment/efl
cxx: follow EINA_ERROR_OUT_OF_MEMORY deprecation
Follow the rest of efl and use ENOMEM from now on. This avoids ugly deprecation warnings.
This commit is contained in:
parent
4d7aade978
commit
6bc1dc6d83
|
@ -32,7 +32,7 @@ void _ecore_main_loop_thread_safe_call_async_callback(void* data)
|
||||||
}
|
}
|
||||||
catch(std::bad_alloc const& e)
|
catch(std::bad_alloc const& e)
|
||||||
{
|
{
|
||||||
eina_error_set( ::EINA_ERROR_OUT_OF_MEMORY);
|
eina_error_set(ENOMEM);
|
||||||
}
|
}
|
||||||
catch(std::system_error const& e)
|
catch(std::system_error const& e)
|
||||||
{
|
{
|
||||||
|
|
|
@ -61,7 +61,7 @@ START_TEST(ecore_cxx_safe_call_async)
|
||||||
std::cout << "waited" << std::endl;
|
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);
|
::eina_error_set(0);
|
||||||
std::cout << "end of ecore_cxx_safe_call_async" << std::endl;
|
std::cout << "end of ecore_cxx_safe_call_async" << std::endl;
|
||||||
}
|
}
|
||||||
|
@ -163,7 +163,7 @@ void call_sync_int()
|
||||||
(
|
(
|
||||||
[] () -> int
|
[] () -> int
|
||||||
{
|
{
|
||||||
::eina_error_set( ::EINA_ERROR_OUT_OF_MEMORY);
|
::eina_error_set(ENOMEM);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
@ -26,7 +26,7 @@ START_TEST(eina_cxx_get_error)
|
||||||
|
|
||||||
ck_assert(ec2.message() == "Message 1");
|
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();
|
efl::eina::error_code ec3 = efl::eina::get_error_code();
|
||||||
ck_assert(!!ec3);
|
ck_assert(!!ec3);
|
||||||
|
|
Loading…
Reference in New Issue