eo-cxx: Get rid of eo_add_custom.

This commit is contained in:
Savio Sena 2014-09-25 16:11:03 -03:00
parent 13de9d089c
commit 684617cfdc
3 changed files with 2 additions and 6 deletions

View File

@ -77,7 +77,7 @@ struct inherit
{
typedef std::tuple<typename std::remove_reference<Args>::type...> tuple_type;
_eo_cls = detail::create_class<D, tuple_type, E...> (eina::make_index_sequence<sizeof...(E)>());
_eo_raw = eo_add_custom
_eo_raw = eo_add
(_eo_cls, NULL,
detail::inherit_constructor
<tuple_type, E...>

View File

@ -7,10 +7,6 @@ extern "C"
#include <Eo.h>
}
#define eo_macro_add_custom(klass, parent, ...) ({ \
eo_add_custom(klass, parent, __VA_ARGS__); \
})
namespace efl { namespace eo { namespace detail {
inline void

View File

@ -214,7 +214,7 @@ operator<<(std::ostream& out, eo_class_constructors const& x)
<< (*callback_iter).name << "));"
<< endl;
}
out << tab(2) << "return eo_add_custom("
out << tab(2) << "return eo_add("
<< x._cls.eo_name << ", _p._eo_raw, " << (*it).name
<< "(" << parameters_list((*it).params) << "));" << endl
<< tab(1) << "}" << endl << endl;