// bool Flush(bool bCurrentOnly = false) static int LUACALL wxLua_wxConfigBase_Flush(lua_State *L) { // get number of arguments int argCount = lua_gettop(L); // bool bCurrentOnly = false bool bCurrentOnly = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : false); // get this wxConfigBase * self = (wxConfigBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxConfigBase); // call Flush bool returns = (self->Flush(bCurrentOnly)); // push the result flag lua_pushboolean(L, returns); return 1; }
// unsigned int GetNumberOfGroups(bool bRecursive = false) const; static int LUACALL wxLua_wxConfigBase_GetNumberOfGroups(lua_State *L) { // get number of arguments int argCount = lua_gettop(L); // bool bRecursive = false bool bRecursive = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : false); // get this wxConfigBase * self = (wxConfigBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxConfigBase); // call GetNumberOfGroups unsigned int returns = (self->GetNumberOfGroups(bRecursive)); // push the result number lua_pushnumber(L, returns); return 1; }
// bool DeleteEntry(const wxString& key, bool bDeleteGroupIfEmpty = true ); static int LUACALL wxLua_wxConfigBase_DeleteEntry(lua_State *L) { // get number of arguments int argCount = lua_gettop(L); // bool bDeleteGroupIfEmpty = true bool bDeleteGroupIfEmpty = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); // const wxString key const wxString key = wxlua_getwxStringtype(L, 2); // get this wxConfigBase * self = (wxConfigBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxConfigBase); // call DeleteEntry bool returns = (self->DeleteEntry(key, bDeleteGroupIfEmpty)); // push the result flag lua_pushboolean(L, returns); return 1; }
// bool Start(int milliseconds = -1, bool oneShot = false) static int LUACALL wxLua_wxTimer_Start(lua_State *L) { // get number of arguments int argCount = lua_gettop(L); // bool oneShot = false bool oneShot = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); // int milliseconds = -1 int milliseconds = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : -1); // get this wxTimer * self = (wxTimer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTimer); // call Start bool returns = (self->Start(milliseconds, oneShot)); // push the result flag lua_pushboolean(L, returns); return 1; }