Update of /cvsroot/wxlua/wxLua/modules/wxbind/src
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv22233/wxLua/modules/wxbind/src
Modified Files:
wxcore_bind.cpp
Log Message:
Add wxShutdown()
Rename lua -> Lua
Index: wxcore_bind.cpp
===================================================================
RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wxcore_bind.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** wxcore_bind.cpp 1 Aug 2007 03:21:24 -0000 1.3
--- wxcore_bind.cpp 7 Aug 2007 20:23:25 -0000 1.4
***************
*** 2052,2055 ****
--- 2052,2057 ----
{ "wxSHRINK", wxSHRINK },
+ { "wxSHUTDOWN_POWEROFF", wxSHUTDOWN_POWEROFF },
+ { "wxSHUTDOWN_REBOOT", wxSHUTDOWN_REBOOT },
#if wxLUA_USE_wxProcess
***************
*** 4031,4034 ****
--- 4033,4052 ----
static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxShell[1] = {{ wxLua_function_wxShell, WXLUAMETHOD_CFUNCTION, 0, 1, s_wxluatagArray_wxLua_function_wxShell }};
+ static wxLuaArgTag s_wxluatagArray_wxLua_function_wxShutdown[] = { &s_wxluaarg_Integer, NULL };
+ // %function bool wxShutdown(wxShutdownFlags flags)
+ static int LUACALL wxLua_function_wxShutdown(lua_State *L)
+ {
+ bool returns;
+ // wxShutdownFlags flags
+ wxShutdownFlags flags = (wxShutdownFlags)wxlua_getintegertype(L, 1);
+ // call wxShutdown
+ returns = (wxShutdown(flags));
+ // push the result flag
+ lua_pushboolean(L, returns);
+
+ return 1;
+ }
+ static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxShutdown[1] = {{ wxLua_function_wxShutdown, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatagArray_wxLua_function_wxShutdown }};
+
// %function void wxWakeUpIdle()
static int LUACALL wxLua_function_wxWakeUpIdle(lua_State *L)
***************
*** 4210,4213 ****
--- 4228,4232 ----
{ "wxShell", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxShell, 1, NULL },
+ { "wxShutdown", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxShutdown, 1, NULL },
{ "wxWakeUpIdle", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxWakeUpIdle, 1, NULL },
{ "wxYield", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxYield, 1, NULL },
|