Skip to content

Commit

Permalink
add IsFunctionPointerType function
Browse files Browse the repository at this point in the history
  • Loading branch information
Vipul-Cariappa committed Feb 20, 2025
1 parent e440c1c commit 19dcd80
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 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
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

0 comments on commit 19dcd80

Please sign in to comment.