summaryrefslogtreecommitdiff
path: root/type.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'type.cpp')
-rw-r--r--type.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/type.cpp b/type.cpp
index a53928f7..42ef40b9 100644
--- a/type.cpp
+++ b/type.cpp
@@ -1090,6 +1090,15 @@ Ref<Type> Type::ValueType(const std::string& value)
}
+std::string Type::GetNameTypeString(BNNameType classFunctionType)
+{
+ char* value = BNGetNameTypeString(classFunctionType);
+ std::string result(value);
+ BNFreeString(value);
+ return result;
+}
+
+
BNIntegerDisplayType Type::GetIntegerTypeDisplayType() const
{
return BNGetIntegerTypeDisplayType(m_object);