[0.2.x] fixed : expr with cplusplus syntax

git-svn-id: https://pykd.svn.codeplex.com/svn@85197 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\kernelnet_cp 2013-09-13 14:08:37 +00:00 committed by Mikhail I. Izmestev
parent ab92133f28
commit b5548159c0
2 changed files with 3 additions and 3 deletions

View File

@ -72,11 +72,11 @@ std::string printSystemVersion(SystemVersionPtr sysVer)
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
std::string evaluate( const std::wstring &expression, bool cplusplus ) python::object evaluate( const std::wstring &expression, bool cplusplus )
{ {
BaseTypeVariant var = pykd::evaluate( expression, cplusplus ); BaseTypeVariant var = pykd::evaluate( expression, cplusplus );
return boost::apply_visitor( pykd::VariantToStr(), var ); return boost::apply_visitor( pykd::VariantToPyobj(), var );
} }
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -20,7 +20,7 @@ python::tuple moduleFindSymbolAndDisp( pykd::Module &module, ULONG64 offset );
std::string printSystemVersion(SystemVersionPtr sysVer); std::string printSystemVersion(SystemVersionPtr sysVer);
std::string evaluate( const std::wstring &expression, bool cplusplus = false ); python::object evaluate( const std::wstring &expression, bool cplusplus = false );
} } //pykd::support namespace end } } //pykd::support namespace end