From: John L. <jla...@gm...> - 2005-11-25 03:20:01
|
I've made some pretty big changes, mainly just moving stuff around. I've added wxlstate.h/cpp, wxLuaState, which will be replacement for wxLuaStateVariables, It'll be a ref counted class so that it can be passed around and if anybody holds a reference to it, they'll be able to check if the lua_State has been closed. The current (old) way just passes around the lua_State pointer so it's easy to write to an invalid pointer if you're not careful. The wxLuaState class will cleanup the GET_LUASTATEVARS_RET defines by having a static function to get the wxLuaState from the lua_State. I can make a constructor that takes a lua_State and attaches to it if it already exists. Moved wxLuaBindings into their own file, wxlbind.h/cpp. Moved the code for wxLuaCallback into it's own wxlcallb.h/cpp file. Renamed library.h/cpp to wxlhandl.h/cpp since it only contains wxLuaHandler= . Added an alternative editor to run wxLua in, app/wxluaedit using my wxstedit component on wxCode. It's not compiled by default and I hope I got it right. in the bakefiles. To compile it, set the environment variable WXSTEDIT=3D/path/to/wxCode/components/wxstedit and run in wxLua/apps/build/msw; nmake USE_WXLUAEDITAPP=3D1 -f makefile.vc or in linux just run make in wxLua/apps/wxluaedit/src. --------------- It's tested and works in linux using wxWidgets 2.6 Regards, John Labenski |