From 19dcd80a6c82ae6cefc6b1d5ab4a8018af87c738 Mon Sep 17 00:00:00 2001 From: Vipul Cariappa Date: Tue, 18 Feb 2025 19:17:16 +0530 Subject: [PATCH] add `IsFunctionPointerType` function --- clingwrapper/src/clingwrapper.cxx | 4 ++++ clingwrapper/src/cpp_cppyy.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/clingwrapper/src/clingwrapper.cxx b/clingwrapper/src/clingwrapper.cxx index 220002f5..0140370d 100644 --- a/clingwrapper/src/clingwrapper.cxx +++ b/clingwrapper/src/clingwrapper.cxx @@ -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& types) { diff --git a/clingwrapper/src/cpp_cppyy.h b/clingwrapper/src/cpp_cppyy.h index 60b6005a..ba03c8e1 100644 --- a/clingwrapper/src/cpp_cppyy.h +++ b/clingwrapper/src/cpp_cppyy.h @@ -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,