forked from enlightenment/efl
eo-cxx: Get rid of eo_add_custom.
This commit is contained in:
parent
13de9d089c
commit
684617cfdc
|
@ -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...>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue