aboutsummaryrefslogtreecommitdiff
path: root/src/modalMenu.h
Commit message (Expand)AuthorAge
* Unlock cursor when opening consoleShadowNinja2016-03-02
* Android: Implement Autohiding button bars to cleanup screenSapier2015-12-18
* Remove m_ext_ptr in GUIFormSpecMenu, replaced by refcount mechanismKahrl2014-10-24
* Add support for Android 2.3+sapier2014-06-29
* Actually pause singleplayer game in pause menu and use lower maximum FPS in itPerttu Ahola2014-01-06
* GUIFormSpecMenu focus fixesKahrl2013-08-19
* Call m_menumgr->deletingMenu from quitMenu in addition to destructorKahrl2013-06-03
* Update Copyright YearsSfan52013-02-24
* Change Minetest-c55 to MinetestPilzAdam2013-02-24
* Optimize headersPerttu Ahola2012-06-17
* Switch the license to be LGPLv2/later, with small parts still remaining as GP...Perttu Ahola2012-06-05
* Crude tab test in main menu (requires gui redesign for the additional tabs)Perttu Ahola2012-03-13
* changed node metadata format to better accomodate future needs and problemsPerttu Ahola2011-04-05
* bug-fixin'Perttu Ahola2011-02-08
* OMG! Main Menu!Perttu Ahola2011-01-23
* work-in-progress gui system updating + some settings system updatingPerttu Ahola2010-12-23
* redoing gui stuffPerttu Ahola2010-12-23
sts(IGameDef *gamedef); void testLuaDestructors(); }; static TestLua g_test_instance; void TestLua::runTests(IGameDef *gamedef) { TEST(testLuaDestructors); } //////////////////////////////////////////////////////////////////////////////// namespace { class DestructorDetector { bool *did_destruct; public: DestructorDetector(bool *did_destruct) : did_destruct(did_destruct) { *did_destruct = false; } ~DestructorDetector() { *did_destruct = true; } }; } void TestLua::testLuaDestructors() { bool did_destruct = false; lua_State *L = luaL_newstate(); lua_cpcall(L, [](lua_State *L) -> int { DestructorDetector d(reinterpret_cast<bool*>(lua_touserdata(L, 1))); luaL_error(L, "error"); return 0; }, &did_destruct); lua_close(L); UASSERT(did_destruct); }