From: John L. <jr...@us...> - 2009-09-27 03:14:29
|
Update of /cvsroot/wxlua/wxLua/bindings/wxwidgets In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv24793/wxLua/bindings/wxwidgets Modified Files: wxadv_rules.lua Log Message: Move wx/wxprec.h before __BORLANDC__ pragma hdrstop as it should be in cpp binding files. Move hook_cpp_binding_includes in genwxbind.lua to be written before any other code. Comment cleanup in some headers. Index: wxadv_rules.lua =================================================================== RCS file: /cvsroot/wxlua/wxLua/bindings/wxwidgets/wxadv_rules.lua,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** wxadv_rules.lua 29 Jan 2008 01:38:55 -0000 1.5 --- wxadv_rules.lua 27 Sep 2009 03:13:51 -0000 1.6 *************** *** 65,69 **** -- Set any #includes or other C++ code to be placed verbatim at the top of -- every generated cpp file or "" for none ! hook_cpp_binding_includes = "" -- ---------------------------------------------------------------------------- --- 65,100 ---- -- Set any #includes or other C++ code to be placed verbatim at the top of -- every generated cpp file or "" for none ! hook_cpp_binding_includes = [[ ! ! #include "wx/wxprec.h" ! ! #ifdef __BORLANDC__ ! #pragma hdrstop ! #endif ! ! #ifndef WX_PRECOMP ! #include "wx/wx.h" ! #endif ! ! // Hack to add accessor to get the ref count ! #define wxGridCellWorkerDummyFriend wxGridCellWorkerDummyFriend; \ ! public: \ ! size_t GetRef() const { return m_nRef; } ! ! #define wxGridCellAttrDummyFriend wxGridCellAttrDummyFriend; \ ! public: \ ! size_t GetRef() const { return m_nRef; } ! ! #include "wx/grid.h" ! ! // The wxGridWorker classes have protected destructors, use DecRef(). ! #define wxLUA_IMPLEMENT_wxGridCellWorker_ENCAPSULATION(className, objName) \ ! IMPLEMENT_ABSTRACT_CLASS(wxLua_wxObject_##objName, wxObject) \ ! wxLua_wxObject_##objName::~wxLua_wxObject_##objName() \ ! { \ ! m_p##objName->DecRef(); \ ! } ! ! ]] -- ---------------------------------------------------------------------------- |