Update of /cvsroot/wxlua/wxLua/modules/wxluadebug/include
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv13186/wxLua/modules/wxluadebug/include
Modified Files:
wxldebug.h wxlstack.h
Log Message:
Streamlined wxLuaBinding::RegisterBinding(...) and remove the bool
"registerClasses" since it didn't do anything useful anyway.
If there needs to be a way to reregister the wxLua functions it should
to be implemented from the ground up.
Renamed the functions wxlua_txxx to wxluaT_xxx to make it easier to
search for their usage. The functions in the wxLuaState used to be
called just "txxx" and are now called wxluaT_Xxx where the first
letter or each word is capitalized (camel-case); again for searching.
* This is the beginning of the separation between the "wxLuaReferences"
being used for both the "tags" for identifying classes and for just
having references to objects so Lua won't GC them.
Index: wxldebug.h
===================================================================
RCS file: /cvsroot/wxlua/wxLua/modules/wxluadebug/include/wxldebug.h,v
retrieving revision 1.40
retrieving revision 1.41
diff -C2 -d -r1.40 -r1.41
*** wxldebug.h 8 Nov 2007 23:47:15 -0000 1.40
--- wxldebug.h 17 Nov 2007 00:15:07 -0000 1.41
***************
*** 30,34 ****
WXLUA_DEBUGITEM_EXPANDED = 0x0400, // for wxLuaStackDialog
WXLUA_DEBUGITEM_LUAREFED = 0x0800 // This item was created with a
! // new tinsert() reference
// rather than using an existing one.
};
--- 30,34 ----
WXLUA_DEBUGITEM_EXPANDED = 0x0400, // for wxLuaStackDialog
WXLUA_DEBUGITEM_LUAREFED = 0x0800 // This item was created with a
! // new wxluaT_insert() reference
// rather than using an existing one.
};
***************
*** 54,61 ****
int GetValueType() const { return m_itemValueType; }
wxString GetValueTypeString() const { return wxlua_getwxluatypename(m_itemValueType); }
!
wxString GetSource() const { return m_itemSource; }
! int GetReference() const { return m_lua_ref; } // ttag reference
int GetIndex() const { return m_index; } // stack index or table level index
int GetFlag() const { return m_flag; } // see wxLuaDebugItem_Type
--- 54,61 ----
int GetValueType() const { return m_itemValueType; }
wxString GetValueTypeString() const { return wxlua_getwxluatypename(m_itemValueType); }
!
wxString GetSource() const { return m_itemSource; }
! int GetReference() const { return m_lua_ref; } // wxluaT_tag reference
int GetIndex() const { return m_index; } // stack index or table level index
int GetFlag() const { return m_flag; } // see wxLuaDebugItem_Type
***************
*** 64,68 ****
void SetFlag(int flag) { m_flag = flag; }
void SetFlagBit(int bit, bool set) { m_flag = WXLUA_SETBIT(m_flag, bit, set); }
! void SetReference(int lua_ref) { m_lua_ref = lua_ref; } // only if you're tremoved it
// Get a human readable string for debugging
--- 64,68 ----
void SetFlag(int flag) { m_flag = flag; }
void SetFlagBit(int bit, bool set) { m_flag = WXLUA_SETBIT(m_flag, bit, set); }
! void SetReference(int lua_ref) { m_lua_ref = lua_ref; } // only if you're wxluaT_removed it
// Get a human readable string for debugging
Index: wxlstack.h
===================================================================
RCS file: /cvsroot/wxlua/wxLua/modules/wxluadebug/include/wxlstack.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** wxlstack.h 8 Nov 2007 23:47:15 -0000 1.7
--- wxlstack.h 17 Nov 2007 00:15:07 -0000 1.8
***************
*** 184,188 ****
wxLuaState m_wxlState; // lua_State to show stack for
! wxArrayInt m_luaReferences; // references from m_wxlState.tinsert
wxImageList* m_imageList; // image list for listctrl
--- 184,188 ----
wxLuaState m_wxlState; // lua_State to show stack for
! wxArrayInt m_luaReferences; // references from m_wxlState.wxluaT_Insert
wxImageList* m_imageList; // image list for listctrl
|