From 721d8ca144688ac9d2521e73e0fa0a68e575e699 Mon Sep 17 00:00:00 2001 From: Savio Sena Date: Mon, 21 Jul 2014 22:56:31 -0300 Subject: [PATCH] eolian-cxx: Oops. Fixing function_return_is_explicit_void the right way. --- src/bin/eolian_cxx/eolian_wrappers.hh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bin/eolian_cxx/eolian_wrappers.hh b/src/bin/eolian_cxx/eolian_wrappers.hh index f956650..db1bdaa 100644 --- a/src/bin/eolian_cxx/eolian_wrappers.hh +++ b/src/bin/eolian_cxx/eolian_wrappers.hh @@ -213,8 +213,9 @@ function_return_is_explicit_void(Eolian_Function const& func, getter_t func_type // XXX This function shouldn't be necessary. Eolian database should // forge functions as desired and the bindings generator shouldn't // be required to convert and understand this. - Eolian_Type const* type = ::eolian_function_return_type_get(&func, func_type.value); - return !!type && safe_str(type->name) == "void"; + Eolian_Type const* type = + ::eolian_function_return_type_get(&func, func_type.value); + return !!type && type->type == EOLIAN_TYPE_VOID; } inline bool -- 2.7.4