[0.3.x] fix: workitem 13815, printing type of variadic function

git-svn-id: https://pykd.svn.codeplex.com/svn@90906 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\EreTIk_cp 2016-01-12 15:25:35 +00:00 committed by Mikhail I. Izmestev
parent ea0781cc4b
commit ff0d434b29
2 changed files with 13 additions and 5 deletions

View File

@ -756,6 +756,8 @@ BOOST_PYTHON_MODULE( pykd )
.def( "isConstant", TypeInfoAdapter::isConstant,
"Return flag: type is constant" )
.def( "isVtbl", TypeInfoAdapter::isVtbl,
"Return true if no type is specified" )
.def( "isNoType", TypeInfoAdapter::isNoType,
"Return true if type is virtual table" )
.def( "getCallingConvention", TypeInfoAdapter::getCallingConvention,
"Returns an indicator of a methods calling convention: callingConvention" )

View File

@ -194,6 +194,12 @@ struct TypeInfoAdapter : public kdlib::TypeInfo {
return typeInfo.isVtbl();
}
static bool isNoType(kdlib::TypeInfo &typeInfo)
{
AutoRestorePyState pystate;
return typeInfo.isNoType();
}
static void appendField( kdlib::TypeInfo &typeInfo, const std::wstring &fieldName, kdlib::TypeInfoPtr &fieldType )
{
AutoRestorePyState pystate;