efl/src/tests/eina_cxx
Felipe Magno de Almeida 2ab6aac74d eina-cxx: Added malloc_clone_allocator to use with POD's when wrapping Eina C structures
Summary:
Added efl::eina::malloc_clone_allocator to be used with ptr_* data
structures for wrapping structures allocated by EFL in C.

This allows for example:

  void foo(Eina_List* l)
  {
    efl::eina::ptr_list<int, efl::eina::malloc_clone_allocator> list(l);
  }

If the standard efl::eina::heap_no_clone_allocator is used, the
deallocation code uses C++ delete operator, which causes undefined
behavior because the allocation was originally done with malloc.

Reviewers: cedric

CC: savio, cedric

Differential Revision: https://phab.enlightenment.org/D614
2014-03-10 12:35:00 +09:00
..
eina_cxx_suite.cc eina-cxx: Added eina_log support for C++, using IOStreams syntax 2014-03-10 12:35:00 +09:00
eina_cxx_test_accessor.cc eina: add a C++ bindings to Eina @feature. 2014-02-25 18:05:01 -03:00
eina_cxx_test_error.cc eina: add a C++ bindings to Eina @feature. 2014-02-25 18:05:01 -03:00
eina_cxx_test_inarray.cc eina-cxx: Added range types for containers 2014-03-10 12:35:00 +09:00
eina_cxx_test_inlist.cc eina-cxx: Added range types for containers 2014-03-10 12:35:00 +09:00
eina_cxx_test_iterator.cc eina: add a C++ bindings to Eina @feature. 2014-02-25 18:05:01 -03:00
eina_cxx_test_log.cc eina-cxx: Added eina_log support for C++, using IOStreams syntax 2014-03-10 12:35:00 +09:00
eina_cxx_test_ptrarray.cc eina-cxx: Added range types for containers 2014-03-10 12:35:00 +09:00
eina_cxx_test_ptrlist.cc eina-cxx: Added malloc_clone_allocator to use with POD's when wrapping Eina C structures 2014-03-10 12:35:00 +09:00
eina_cxx_test_stringshare.cc eina: add a C++ bindings to Eina @feature. 2014-02-25 18:05:01 -03:00
eina_cxx_test_thread.cc eina: add a C++ bindings to Eina @feature. 2014-02-25 18:05:01 -03:00
eina_cxx_test_value.cc eina-cxx: renamed efl::eina::eina_value to efl::eina::value 2014-03-07 14:32:42 +09:00