From: John L. <jr...@us...> - 2006-06-08 03:22:40
|
Update of /cvsroot/wxlua/wxLua/apps/wxluacan/src In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv13925/wxLua/apps/wxluacan/src Modified Files: wxluacan.cpp wxluacan.h wxluacan_bind.cpp wxluacan_rules.lua Log Message: add hook_cpp_binding_post_includes to the genwxbind rules files to appending arbitrary C code to the bindings Index: wxluacan.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/apps/wxluacan/src/wxluacan.cpp,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** wxluacan.cpp 25 May 2006 01:19:07 -0000 1.13 --- wxluacan.cpp 8 Jun 2006 03:22:06 -0000 1.14 *************** *** 9,12 **** --- 9,15 ---- #endif + #include "wx/wxprec.h" + + #ifndef WX_PRECOMP #include "wx/wx.h" *************** *** 14,30 **** #include "wxlua/include/wxlstate.h" - - #include "wxluacan.h" - - - // ------------------------------------------------------------------------------------------------- // Bind class wxlCanObj // ------------------------------------------------------------------------------------------------- ! // Lua MetaTable Tag for Class int s_wxluatag_wxlCanObj = -1; --- 17,28 ---- #include "wxlua/include/wxlstate.h" #include "wxluacan.h" // ------------------------------------------------------------------------------------------------- // Bind class wxlCanObj // ------------------------------------------------------------------------------------------------- ! // Lua MetaTable Tag for Class 'wxlCanObj' int s_wxluatag_wxlCanObj = -1; *************** *** 190,194 **** // ------------------------------------------------------------------------------------------------- ! // Lua MetaTable Tag for Class int s_wxluatag_wxlCanObjRect = -1; --- 188,192 ---- // ------------------------------------------------------------------------------------------------- ! // Lua MetaTable Tag for Class 'wxlCanObjRect' int s_wxluatag_wxlCanObjRect = -1; *************** *** 237,241 **** // ------------------------------------------------------------------------------------------------- ! // Lua MetaTable Tag for Class int s_wxluatag_wxlCanObjCircle = -1; --- 235,239 ---- // ------------------------------------------------------------------------------------------------- ! // Lua MetaTable Tag for Class 'wxlCanObjCircle' int s_wxluatag_wxlCanObjCircle = -1; *************** *** 282,286 **** // ------------------------------------------------------------------------------------------------- ! // Lua MetaTable Tag for Class int s_wxluatag_wxlCanObjScript = -1; --- 280,284 ---- // ------------------------------------------------------------------------------------------------- ! // Lua MetaTable Tag for Class 'wxlCanObjScript' int s_wxluatag_wxlCanObjScript = -1; *************** *** 327,331 **** // ------------------------------------------------------------------------------------------------- ! // Lua MetaTable Tag for Class int s_wxluatag_wxlCanObjAddScript = -1; --- 325,329 ---- // ------------------------------------------------------------------------------------------------- ! // Lua MetaTable Tag for Class 'wxlCanObjAddScript' int s_wxluatag_wxlCanObjAddScript = -1; *************** *** 387,391 **** // ------------------------------------------------------------------------------------------------- ! // Lua MetaTable Tag for Class int s_wxluatag_wxlCan = -1; --- 385,389 ---- // ------------------------------------------------------------------------------------------------- ! // Lua MetaTable Tag for Class 'wxlCan' int s_wxluatag_wxlCan = -1; *************** *** 491,495 **** // ------------------------------------------------------------------------------------------------- ! // Lua MetaTable Tag for Class int s_wxluatag_wxlLuaCanCmd = -1; --- 489,493 ---- // ------------------------------------------------------------------------------------------------- ! // Lua MetaTable Tag for Class 'wxlLuaCanCmd' int s_wxluatag_wxlLuaCanCmd = -1; Index: wxluacan.h =================================================================== RCS file: /cvsroot/wxlua/wxLua/apps/wxluacan/src/wxluacan.h,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** wxluacan.h 25 May 2006 03:55:22 -0000 1.12 --- wxluacan.h 8 Jun 2006 03:22:06 -0000 1.13 *************** *** 9,16 **** #define __HOOK_WXLUA_wxluacan_H__ - #include "wxlua/include/internal.h" - #include "wxbind/include/wxbind.h" // binding class class wxLuaBinding_wxluacan : public wxLuaBinding --- 9,18 ---- #define __HOOK_WXLUA_wxluacan_H__ #include "wxbind/include/wxbind.h" + #include "wxlua/include/wxlstate.h" + #include "wxlua/include/wxlbind.h" + #include "wxlua/include/internal.h" + // binding class class wxLuaBinding_wxluacan : public wxLuaBinding Index: wxluacan_bind.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/apps/wxluacan/src/wxluacan_bind.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** wxluacan_bind.cpp 25 May 2006 01:19:07 -0000 1.6 --- wxluacan_bind.cpp 8 Jun 2006 03:22:06 -0000 1.7 *************** *** 9,12 **** --- 9,15 ---- #endif + #include "wx/wxprec.h" + + #ifndef WX_PRECOMP #include "wx/wx.h" *************** *** 14,25 **** #include "wxlua/include/wxlstate.h" - - #include "wxluacan.h" - - - // ---------------------------------------------------------------------------- // wxLuaGetEventList_wxluacan() is called to register events --- 17,23 ---- Index: wxluacan_rules.lua =================================================================== RCS file: /cvsroot/wxlua/wxLua/apps/wxluacan/src/wxluacan_rules.lua,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** wxluacan_rules.lua 25 May 2006 01:19:07 -0000 1.10 --- wxluacan_rules.lua 8 Jun 2006 03:22:06 -0000 1.11 *************** *** 61,64 **** --- 61,69 ---- ------------------------------------------------------------------------------- + -- Set any #includes or other C++ code to be placed verbatim below the + -- #includes of every generated cpp file or "" for none + hook_cpp_binding_post_includes = "" + + ------------------------------------------------------------------------------- -- Add additional include information or C++ code for the binding header file. -- This code will be place directly after any #includes at the top of the file |