Skip to content

Commit

Permalink
Make GetDataMember use an out param
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronj0 authored and vgvassilev committed Sep 20, 2024
1 parent fbe9888 commit 7ee7774
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions clingwrapper/src/clingwrapper.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1627,9 +1627,10 @@ bool Cppyy::IsStaticMethod(TCppMethod_t method)
// return (TCppIndex_t)0; // unknown class?
// }

std::vector<Cppyy::TCppScope_t> Cppyy::GetDatamembers(TCppScope_t scope)
void Cppyy::GetDatamembers(TCppScope_t scope, std::vector<TCppScope_t>& datamembers)
{
return Cpp::GetDatamembers(scope);
Cpp::GetDatamembers(scope, datamembers);
Cpp::GetStaticDatamembers(scope, datamembers);
}

bool Cppyy::CheckDatamember(TCppScope_t scope, const std::string& name) {
Expand Down
2 changes: 1 addition & 1 deletion clingwrapper/src/cpp_cppyy.h
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ namespace Cppyy {
// RPY_EXPORTED
// TCppIndex_t GetNumDatamembers(TCppScope_t scope, bool accept_namespace = false) { return 0; }
RPY_EXPORTED
std::vector<TCppScope_t> GetDatamembers(TCppScope_t scope);
void GetDatamembers(TCppScope_t scope, std::vector<TCppScope_t>& datamembers);
// GetDatamemberName is unused.
// RPY_EXPORTED
// std::string GetDatamemberName(TCppScope_t scope, TCppIndex_t idata) { return ""; }
Expand Down

0 comments on commit 7ee7774

Please sign in to comment.