コード例 #1
0
ファイル: CachedObjectMgr.cpp プロジェクト: Bes666/Evemu
PyObject *CachedObjectMgr::MakeCacheHint(const std::string &objectID)
{
    //this is sub-optimal, but it keeps things more consistent (in case StringCollapseVisitor ever gets more complicated)
    PyString *str = new PyString( objectID );
    PyObject * obj = MakeCacheHint(str);
    PyDecRef(obj);
    return obj;
}
コード例 #2
0
PyObject *CachedObjectMgr::MakeCacheHint(const std::string &objectID) {
    //this is sub-optimal, but it keeps things more consistent (in case StringCollapseVisitor ever gets more complicated)
    PyString str( objectID );
    return(MakeCacheHint(&str));
}