From: John L. <jla...@gm...> - 2006-04-22 21:45:55
|
In order to implement static classmember functions I have made it so that you can call the function as wx.wxButton_GetDefaultSize() or if you have an instance of a wxButton mybutton:GetDefaultSize() I had to remove "static" from the C binding functions in order to share the C functions across the binding files. This meant that in order to not have any name conflicts I prepended "wxLua_" to every function so that for the above function the C function that lua calls is int LUACALL wxLua_wxButton_GetDefaultSize(lua_State* L) previously it was static int LUACALL wxButton_GetDefaultSize(lua_State* L) ----- You must update any overrides you have written and add "wxLua_" to the front as in %override wxLua_SomeFunction and for the C function signature. Regards, John Labenski |