Skip to content

Commit

Permalink
update Cpp::GetVariableOffset according to API changes to handle mu…
Browse files Browse the repository at this point in the history
…ltiple inheritance
  • Loading branch information
Vipul-Cariappa committed Dec 17, 2024
1 parent 93941d5 commit 59d89f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions clingwrapper/src/clingwrapper.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1710,9 +1710,9 @@ std::string Cppyy::GetTypeAsString(TCppType_t type)
return Cpp::GetTypeAsString(type);
}

intptr_t Cppyy::GetDatamemberOffset(TCppScope_t var)
intptr_t Cppyy::GetDatamemberOffset(TCppScope_t var, TCppScope_t parent)
{
return Cpp::GetVariableOffset(Cpp::GetUnderlyingScope(var));
return Cpp::GetVariableOffset(Cpp::GetUnderlyingScope(var), parent);
}

// static inline
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 @@ -349,7 +349,7 @@ namespace Cppyy {
RPY_EXPORTED
std::string GetTypeAsString(TCppType_t type);
RPY_EXPORTED
intptr_t GetDatamemberOffset(TCppScope_t var);
intptr_t GetDatamemberOffset(TCppScope_t var, TCppScope_t parent = nullptr);
RPY_EXPORTED
bool CheckDatamember(TCppScope_t scope, const std::string& name);

Expand Down

0 comments on commit 59d89f3

Please sign in to comment.