[Commits] [wesnoth/wesnoth] 986a87: failed conversion of enums results in error dialog...

GitHub noreply at github.com
Sun May 25 07:17:19 UTC 2014


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

  Changed paths:
    M src/make_enum.hpp
    M src/team.cpp
    M src/team.hpp

  Log Message:
  -----------
  failed conversion of enums results in error dialog, in debug mode

The make_enum macro header now includes wml_exception.hpp, and
game_config. We use the FAIL macro to launch a transient
twml_exception dialog when an enum is casted from an illegal
string value. This means that when enums in our C++ classes are
initialized using lexical_cast<enum_type> (cfg["attribute"]),
we will automatically give error reports for bad values.


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

  Changed paths:
    M changelog

  Log Message:
  -----------
  update changelog


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

  Changed paths:
    M data/core/units/khalifate/Hakim.cfg

  Log Message:
  -----------
  Merge branch 'master' of git://github.com/wesnoth/wesnoth


Compare: https://github.com/wesnoth/wesnoth/compare/a43bc197e320...d77f0f9c864e


More information about the Commits mailing list