mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-21 04:13:22 +08:00
[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:
parent
ab92133f28
commit
b5548159c0
@ -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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user