From: Ray G. <ray...@sc...> - 2005-11-18 02:58:52
|
I am still working on generating a new set of interfaces directly from wx head cvs. I am making progress, but nothing stable yet.=20 Trying to figure out the best way to handle issues involving base classes that vary according to implementation (e.g. using wxGeneric vs native) wxLua tends to only create luac functions for prototypes in lua metatable, if not found it then goes to base class metatable. My current thought is simply merge all base class calls up to main class metatable and ignore base class redirection - thereby avoiding bad casts. This of coarse will be at the cost of code bloat. Ray -----Original Message----- From: wxl...@li... [mailto:wxl...@li...] On Behalf Of John Labenski Sent: Thursday, 17 November 2005 17:02 To: wxl...@li... Subject: [Wxlua-users] CVS updated to work... sort of I've fixed the handling of %if statements for enums and added the bindings for "builtin" (global) functions like wxYield. I'm using wxWidgets CVS head, but when I updated the interface files I looked at the 2.6 headers, so it should work for that too. It compiles without error in GCC 4, but still needs some work and the Makefiles need some tweaking. If you want to try it use the Makefile in the apps/wxlua/src dir, gcc in linux only. Current bugs: (in Linux, wx27 CVS HEAD) Segfaults if you run the wxLua sample directly and you can't get a backtrace, this will probably be hard to figure out, but with some luck... $./wxLua wxLua: Expected enum number for parameter 6.wxLua: Error while running chunkwxLua: Error while running chunk Runs if you do $./wxLua ../../../samples/editor.wx.lua wxLua: Error while running chunk wxLua: Unexpected user defined data type for parameter 2. Open the "grid" sample and then The menu item "Run" wxLua: Error while running chunk ../../../samples/editor.wx.lua:1645: attempt to call field `wxExecute' (a nil value) stack traceback: ../../../samples/editor.wx.lua:1645: in function <../../../samples/editor.wx.lua:1635> But if you do "Debug" and then "Continue" it does show and even works! I'll try to clean it up a little more, fix these problems, and I think we should be workable in just a short time. -John Labenski ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28&alloc_id=16845&op=3Dick _______________________________________________ Wxlua-users mailing list Wxl...@li... https://lists.sourceforge.net/lists/listinfo/wxlua-users |