Commits

wlav  committed db42c62

add return type to function signatures

  • Participants
  • Parent commits 374968f
  • Branches reflex-support

Comments (0)

Files changed (2)

File pypy/module/cppyy/src/cintcwrapper.cxx

     TFunction* f = type_get_method(handle, method_index);
     TClassRef cr = type_from_handle(handle);
     std::ostringstream sig;
+    if (cr.GetClass() && cr->GetClassInfo()
+        && strcmp(f->GetName(), ((G__ClassInfo*)cr->GetClassInfo())->Name()) != 0)
+        sig << f->GetReturnTypeName() << " ";
     sig << cr.GetClassName() << "::" << f->GetName() << "(";
     int nArgs = f->GetNargs();
     for (int iarg = 0; iarg < nArgs; ++iarg) {

File pypy/module/cppyy/src/reflexcwrapper.cxx

     Reflex::Member m = s.FunctionMemberAt(method_index);
     Reflex::Type mt = m.TypeOf();
     std::ostringstream sig;
+    if (!m.IsConstructor())
+        sig << mt.ReturnType().Name() << " ";
     sig << s.Name(Reflex::SCOPED) << "::" << m.Name() << "(";
     int nArgs = m.FunctionParameterSize();
     for (int iarg = 0; iarg < nArgs; ++iarg) {