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 19, 2024
1 parent 93941d5 commit ae5e27c
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 klass)
{
return Cpp::GetVariableOffset(Cpp::GetUnderlyingScope(var));
return Cpp::GetVariableOffset(Cpp::GetUnderlyingScope(var), klass);
}

// 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 klass = nullptr);
RPY_EXPORTED
bool CheckDatamember(TCppScope_t scope, const std::string& name);

Expand Down

0 comments on commit ae5e27c

Please sign in to comment.