From: John L. <jr...@us...> - 2007-01-21 23:13:14
|
Update of /cvsroot/wxlua/wxLua/bindings/wxwidgets In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv17508/wxLua/bindings/wxwidgets Modified Files: override.hpp Log Message: fix wxPrintout::OnBeginDocument binding to not directly call wxPrintout::OnBeginDocument but just OnBeginDocument on the object on the stack, allows base_OnBeginDocument to work properly Add better descriptions to functions in wxlstate.h GetLuaNULL() -> GetLuaNULLTag() GetLuaWinDestroyTable() -> GetLuaWinDestroyTableTag() wxLua_lua_isenumerationtype does not take nil as a valid enum anymore Add wxLuaDebugDataItem::ToString for debugging Index: override.hpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/bindings/wxwidgets/override.hpp,v retrieving revision 1.58 retrieving revision 1.59 diff -C2 -d -r1.58 -r1.59 *** override.hpp 19 Jan 2007 04:17:38 -0000 1.58 --- override.hpp 21 Jan 2007 23:13:06 -0000 1.59 *************** *** 3766,3790 **** %end - %override wxLua_wxPrintout_OnBeginDocument - // bool OnBeginDocument(int startPage, int endPage); - static int LUACALL wxLua_wxPrintout_OnBeginDocument(lua_State *L) - { - wxLuaState wxlState(L); - bool returns; - // int endPage - int endPage = (int)wxlState.GetNumberType(3); - // int startPagest - int startPage = (int)wxlState.GetNumberType(2); - // get this - wxPrintout *self = (wxPrintout *)wxlState.GetUserDataType(1, s_wxluatag_wxPrintout); - // call OnBeginDocument - returns = self->wxPrintout::OnBeginDocument(startPage, endPage); - // push the result number - lua_pushboolean(L, returns); - // return the number of parameters - return 1; - } - %end - // ---------------------------------------------------------------------------- // Overrides for regex.i --- 3766,3769 ---- |