From: John L. <jr...@us...> - 2007-06-25 03:19:53
|
Update of /cvsroot/wxlua/wxLua/modules/wxlua/src In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv32516/wxLua/modules/wxlua/src Modified Files: wxlstate.cpp Log Message: Add %gc, %ungc, %gc_this, and %ungc_this for fine tuning of tracking or releasing the garbage collection of userdata objects that become owned or released by something other than wxLua. Added %delete to many more classes using the above tags to control when and if they should be deleted. Index: wxlstate.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxlua/src/wxlstate.cpp,v retrieving revision 1.114 retrieving revision 1.115 diff -C2 -d -r1.114 -r1.115 *** wxlstate.cpp 16 Jun 2007 06:21:46 -0000 1.114 --- wxlstate.cpp 25 Jun 2007 03:19:50 -0000 1.115 *************** *** 2185,2188 **** --- 2185,2196 ---- } + bool wxLuaState::IsTrackedObject(void *pObject) const + { + wxCHECK_MSG(Ok(), false, wxT("Invalid wxLuaState")); + + wxLongToLongHashMap::iterator it = M_WXLSTATEDATA->m_wxlStateData->m_trackedObjects.find((long) pObject); + return (it != M_WXLSTATEDATA->m_wxlStateData->m_trackedObjects.end()); + } + wxLongToLongHashMap* wxLuaState::GetTrackedObjects() { |