[Commits] [wesnoth/wesnoth] b7f9f3: small refactor of strict mode logging

GitHub noreply at github.com
Sat May 17 21:39:24 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: b7f9f37f4dfadd62c43fa01e3674a8b4275d517e
      https://github.com/wesnoth/wesnoth/commit/b7f9f37f4dfadd62c43fa01e3674a8b4275d517e
  Author: Chris Beck <render787 at gmail.com>
  Date:   2014-05-17 (Sat, 17 May 2014)

  Changed paths:
    M src/log.cpp

  Log Message:
  -----------
  small refactor of strict mode logging

Move a bool flag that remembers if we threw an exception, to be a
local static variable in that function, rather than at file scope.
This ensures that no other functions will mess with it.


  Commit: dfdd43ba384d5c45f68b8e245c5cc30a30102af9
      https://github.com/wesnoth/wesnoth/commit/dfdd43ba384d5c45f68b8e245c5cc30a30102af9
  Author: Chris Beck <render787 at gmail.com>
  Date:   2014-05-17 (Sat, 17 May 2014)

  Changed paths:
    M src/CMakeLists.txt
    M src/SConscript
    R src/builder.cpp
    R src/builder.hpp
    M src/display.cpp
    M src/editor/editor_display.cpp
    M src/game_config_manager.cpp
    M src/menu_events.cpp
    A src/terrain_builder.cpp
    A src/terrain_builder.hpp

  Log Message:
  -----------
  rename builder.cpp -> terrain_builder.cpp

Since that's the class that it defines.


  Commit: a6eb8bb4ef8f256e8555cc549012ccbdf05f8b86
      https://github.com/wesnoth/wesnoth/commit/a6eb8bb4ef8f256e8555cc549012ccbdf05f8b86
  Author: Chris Beck <render787 at gmail.com>
  Date:   2014-05-17 (Sat, 17 May 2014)

  Changed paths:
    M src/lexical_cast.hpp

  Log Message:
  -----------
  bad_lexical_cast derives from std::exception


  Commit: c7ea7677ab38f46abed2020236e57e55744708c1
      https://github.com/wesnoth/wesnoth/commit/c7ea7677ab38f46abed2020236e57e55744708c1
  Author: Chris Beck <render787 at gmail.com>
  Date:   2014-05-17 (Sat, 17 May 2014)

  Changed paths:
    M src/actions/undo.cpp
    M src/actions/undo.hpp
    M src/game_events/action_wml.cpp
    M src/map_location.hpp
    M src/playsingle_controller.cpp

  Log Message:
  -----------
  catch bad lexical casts (from parsing map locations from configs)


  Commit: bba94e422c485fb09bacef4c1d55c5f40d91803d
      https://github.com/wesnoth/wesnoth/commit/bba94e422c485fb09bacef4c1d55c5f40d91803d
  Author: Chris Beck <render787 at gmail.com>
  Date:   2014-05-17 (Sat, 17 May 2014)

  Changed paths:
    M src/CMakeLists.txt
    M src/SConscript
    A src/tests/test_map_location.cpp

  Log Message:
  -----------
  add map_location characterization tests

There is a compiler option to generate the expected output set for
the current build, see test_map_location.cpp


Compare: https://github.com/wesnoth/wesnoth/compare/493f8d8fee1c...bba94e422c48


More information about the Commits mailing list