Merge lp:~widelands-dev/widelands/assert_removed into lp:widelands
Proposed by
TiborB
Status: | Merged |
---|---|
Merged at revision: | 7638 |
Proposed branch: | lp:~widelands-dev/widelands/assert_removed |
Merge into: | lp:widelands |
Diff against target: |
13 lines (+1/-2) 1 file modified
src/ai/defaultai.cc (+1/-2) |
To merge this branch: | bzr merge lp:~widelands-dev/widelands/assert_removed |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
SirVer | Approve | ||
Review via email: mp+278269@code.launchpad.net |
Description of the change
This is to fix today's compilation problems. I know Tino fixed it with exit(), but here I added throw, it is better because it prints something to terminal...
To post a comment you must log in.
I like this suggestion better too - it is how we deal with unreachable code everywhere else.
An even nicer solution would be if we had an UNREACHABLE macro that does behave exactly the same in every place. It could be implemented differently for each compiler, for example for clang there is http:// clang.llvm. org/docs/ LanguageExtensi ons.html# builtin- unreachable.