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

Enums and FunctionPointer changes #128

Merged
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: 5 additions & 0 deletions clingwrapper/src/clingwrapper.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,10 @@ bool Cppyy::IsClassType(TCppType_t type) {
return Cpp::IsRecordType(type);
}

bool Cppyy::IsFunctionPointerType(TCppType_t type) {
return Cpp::IsFunctionPointerType(type);
}

// returns true if no new type was added.
bool Cppyy::AppendTypesSlow(const std::string &name,
std::vector<Cpp::TemplateArgInfo>& types) {
Expand Down Expand Up @@ -1656,6 +1660,7 @@ void Cppyy::GetDatamembers(TCppScope_t scope, std::vector<TCppScope_t>& datamemb
{
Cpp::GetDatamembers(scope, datamembers);
Cpp::GetStaticDatamembers(scope, datamembers);
Cpp::GetEnumConstantDatamembers(scope, datamembers, false);
}

bool Cppyy::CheckDatamember(TCppScope_t scope, const std::string& name) {
Expand Down
2 changes: 2 additions & 0 deletions clingwrapper/src/cpp_cppyy.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ namespace Cppyy {
RPY_EXPORTED
bool IsClassType(TCppType_t type);
RPY_EXPORTED
bool IsFunctionPointerType(TCppType_t type);
RPY_EXPORTED
TCppType_t GetType(const std::string &name, bool enable_slow_lookup = false);
RPY_EXPORTED
bool AppendTypesSlow(const std::string &name,
Expand Down
Loading