From: John L. <jr...@us...> - 2008-01-25 23:51:27
|
Update of /cvsroot/wxlua/wxLua/bindings/wxluasocket In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv1159/wxLua/bindings/wxluasocket Modified Files: wxluasocket_rules.lua Log Message: - Removed the wxLuaBinding::PreRegister() and PostRegister() functions and made RegisterBinding() virtual Note: wxLuaBinding::RegisterBinding() now leaves the Lua table that the binding objects were installed into on the stack. You must pop it. * The rules.lua for genwxbind.lua now uses wxLuaBinding_class_declaration and wxLuaBinding_class_implementation to replace wxLuaBinding_preregister and wxLuaBinding_postregister. You may now add whatever you like to the class declaration and implementation source code. Updated to Lua 5.1.3 official Index: wxluasocket_rules.lua =================================================================== RCS file: /cvsroot/wxlua/wxLua/bindings/wxluasocket/wxluasocket_rules.lua,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** wxluasocket_rules.lua 16 Jul 2007 19:34:15 -0000 1.6 --- wxluasocket_rules.lua 25 Jan 2008 23:50:47 -0000 1.7 *************** *** 33,37 **** -- bindings in it. This will be used as #include "hook_cpp_header_filename" in -- the C++ wrapper files, so it must include the proper #include path. ! hook_cpp_header_filename = "wxluasocket/include/wxluasocket_bind.h" ------------------------------------------------------------------------------- --- 33,37 ---- -- bindings in it. This will be used as #include "hook_cpp_header_filename" in -- the C++ wrapper files, so it must include the proper #include path. ! hook_cpp_header_filename = "wxluasocket/include/"..hook_cpp_namespace.."_bind.h" ------------------------------------------------------------------------------- *************** *** 116,129 **** --============================================================================= ! -- virtual void wxLuaBinding::PreRegister function body for the ! -- hook_cpp_binding_classname. You can initialize data here. ! -- Typically this is not necessary and you can rem this out. ! -- wxLuaBinding_PreRegister = nothing to do here ! --============================================================================= ! -- virtual void wxLuaBinding::PostRegister function body for the ! -- hook_cpp_binding_classname. You can load any other custom bindings here. ! -- Typically this is not necessary and you can rem this out. ! -- wxLuaBinding_PostRegister = nothing to do here --============================================================================= --- 116,134 ---- --============================================================================= ! -- Declare functions or member variables for the derived wxLuaBinding class ! -- that will be generated for this binding. The string will be copied verbatim ! -- into the body of the hook_cpp_binding_classname class declaration in the ! -- hook_cpp_header_filename header file. May be remmed out to ignore it. ! -- See usage in the wxWidgets wxbase_rules.lua file. ! --wxLuaBinding_class_declaration = nothing to do here ! ! ------------------------------------------------------------------------------- ! -- Implement the functions or member variables for the derived wxLuaBinding ! -- class that you have declared. The string will be copied into the ! -- hook_cpp_binding_filename source file. May be remmed out to ignore it. ! -- See usage in the wxWidgets wxbase_rules.lua file. ! ! --wxLuaBinding_class_implementation = nothing to do here --============================================================================= |