Update of /cvsroot/wxlua/wxLua/bindings/wxwidgets
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv13925/wxLua/bindings/wxwidgets
Modified Files:
wx_rules.lua
Log Message:
add hook_cpp_binding_post_includes to the genwxbind rules files to appending arbitrary C code to the bindings
Index: wx_rules.lua
===================================================================
RCS file: /cvsroot/wxlua/wxLua/bindings/wxwidgets/wx_rules.lua,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** wx_rules.lua 25 May 2006 01:19:07 -0000 1.16
--- wx_rules.lua 8 Jun 2006 03:22:07 -0000 1.17
***************
*** 58,64 ****
-- Set any #includes or other C++ code to be placed verbatim at the top of
-- every generated cpp file or "" for none
! -- X defines Above and Below as numbers, undef them
! hook_cpp_binding_includes =
! "#include \"wx/wxprec.h\"\n"..
"#ifdef Above\n #undef Above\n#endif\n"..
"#ifdef Below\n #undef Below\n#endif\n"
--- 58,68 ----
-- 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 = ""
!
! -------------------------------------------------------------------------------
! -- Set any #includes or other C++ code to be placed verbatim below the
! -- #includes of every generated cpp file or "" for none
! -- X.h defines Above and Below as numbers, undef them for wx/layout.h
! hook_cpp_binding_post_includes =
"#ifdef Above\n #undef Above\n#endif\n"..
"#ifdef Below\n #undef Below\n#endif\n"
|