Skip to content

Commit 19dcd80

Browse files
add IsFunctionPointerType function
1 parent e440c1c commit 19dcd80

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

clingwrapper/src/clingwrapper.cxx

+4
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,10 @@ bool Cppyy::IsClassType(TCppType_t type) {
463463
return Cpp::IsRecordType(type);
464464
}
465465

466+
bool Cppyy::IsFunctionPointerType(TCppType_t type) {
467+
return Cpp::IsFunctionPointerType(type);
468+
}
469+
466470
// returns true if no new type was added.
467471
bool Cppyy::AppendTypesSlow(const std::string &name,
468472
std::vector<Cpp::TemplateArgInfo>& types) {

clingwrapper/src/cpp_cppyy.h

+2
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ namespace Cppyy {
8484
RPY_EXPORTED
8585
bool IsClassType(TCppType_t type);
8686
RPY_EXPORTED
87+
bool IsFunctionPointerType(TCppType_t type);
88+
RPY_EXPORTED
8789
TCppType_t GetType(const std::string &name, bool enable_slow_lookup = false);
8890
RPY_EXPORTED
8991
bool AppendTypesSlow(const std::string &name,

0 commit comments

Comments
 (0)