Update of /cvsroot/wxlua/wxLua/modules/wxbind/src
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv17364/wxLua/modules/wxbind/src
Modified Files:
wave.cpp wx_bind.cpp
Log Message:
Add version #define for bindings to tell people to regenerate them
Index: wx_bind.cpp
===================================================================
RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wx_bind.cpp,v
retrieving revision 1.67
retrieving revision 1.68
diff -C2 -d -r1.67 -r1.68
*** wx_bind.cpp 12 Dec 2006 07:09:40 -0000 1.67
--- wx_bind.cpp 13 Dec 2006 00:27:56 -0000 1.68
***************
*** 4577,4580 ****
--- 4577,4597 ----
#endif // wxLUA_USE_wxFrame
+ #if wxLUA_USE_wxJoystick || wxUSE_JOYSTICK
+
+ // %static int GetNumberJoysticks() const
+ static int LUACALL wxLua_wxJoystick_GetNumberJoysticks(lua_State *L)
+ {
+ wxLuaState wxlState(L);
+ int returns;
+ // call GetNumberJoysticks
+ returns = wxJoystick::GetNumberJoysticks();
+ // push the result number
+ lua_pushnumber(L, returns);
+
+ return 1;
+ }
+
+ #endif // wxLUA_USE_wxJoystick || wxUSE_JOYSTICK
+
#if wxLUA_USE_wxObject
***************
*** 5203,5206 ****
--- 5220,5228 ----
+ #if wxLUA_USE_wxJoystick || wxUSE_JOYSTICK
+ { LuaGlobal, "wxJoystick_GetNumberJoysticks", wxLua_wxJoystick_GetNumberJoysticks, 0, 0, { 0 } },
+ #endif // wxLUA_USE_wxJoystick || wxUSE_JOYSTICK
+
+
#if wxLUA_USE_wxObject
{ LuaGlobal, "wxCreateDynamicObject", wxLua_function_wxCreateDynamicObject, 1, 1, { &s_wxluaarg_String, 0 } },
Index: wave.cpp
===================================================================
RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wave.cpp,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** wave.cpp 12 Dec 2006 07:09:39 -0000 1.17
--- wave.cpp 13 Dec 2006 00:27:56 -0000 1.18
***************
*** 937,949 ****
}
! // int GetNumberJoysticks() const
static int LUACALL wxLua_wxJoystick_GetNumberJoysticks(lua_State *L)
{
wxLuaState wxlState(L);
int returns;
- // get this
- wxJoystick * self = (wxJoystick *)wxlState.GetUserDataType(1, s_wxluatag_wxJoystick);
// call GetNumberJoysticks
! returns = self->GetNumberJoysticks();
// push the result number
lua_pushnumber(L, returns);
--- 937,947 ----
}
! // %static int GetNumberJoysticks() const
static int LUACALL wxLua_wxJoystick_GetNumberJoysticks(lua_State *L)
{
wxLuaState wxlState(L);
int returns;
// call GetNumberJoysticks
! returns = wxJoystick::GetNumberJoysticks();
// push the result number
lua_pushnumber(L, returns);
|