mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-29 20:03:33 +08:00

[0.3.x] added : getSrcPath ( return current source server path ) [0.3.x] added : setSrcPath ( set source path ) [0.3.x] added : appendSrcPath ( append current source path ) git-svn-id: https://pykd.svn.codeplex.com/svn@90664 9b283d60-5439-405e-af05-b73fd8c4d996
59 lines
1012 B
C++
59 lines
1012 B
C++
#pragma once
|
|
|
|
#include <kdlib/symengine.h>
|
|
|
|
#include "pythreadstate.h"
|
|
|
|
namespace pykd {
|
|
|
|
inline
|
|
void setSymSrvDir(const std::wstring &symSrvDirectory)
|
|
{
|
|
AutoRestorePyState pystate;
|
|
kdlib::setSymSrvDir(symSrvDirectory);
|
|
}
|
|
|
|
inline
|
|
std::wstring getSymbolPath()
|
|
{
|
|
AutoRestorePyState pystate;
|
|
return kdlib::getSymbolPath();
|
|
}
|
|
|
|
inline
|
|
void setSymbolPath(const std::wstring &symPath)
|
|
{
|
|
AutoRestorePyState pystate;
|
|
kdlib::setSymbolPath(symPath);
|
|
}
|
|
|
|
inline
|
|
void appendSymbolPath(const std::wstring &symPath)
|
|
{
|
|
AutoRestorePyState pystate;
|
|
kdlib::appendSymbolPath(symPath);
|
|
}
|
|
|
|
inline
|
|
std::wstring getSrcPath()
|
|
{
|
|
AutoRestorePyState pystate;
|
|
return kdlib::getSrcPath();
|
|
}
|
|
|
|
inline
|
|
void setSrcPath(const std::wstring &srcPath)
|
|
{
|
|
AutoRestorePyState pystate;
|
|
kdlib::setSrcPath(srcPath);
|
|
}
|
|
|
|
inline
|
|
void appendSrcPath(const std::wstring &srcPath)
|
|
{
|
|
AutoRestorePyState pystate;
|
|
kdlib::appendSrcPath(srcPath);
|
|
}
|
|
|
|
} // namespace pykd
|