Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GetDataMember to use an out param #106

Merged
merged 1 commit into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading