Create an "Unreachable" macro

Bug #1518929 reported by GunChleoc
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Fix Released
Undecided
Unassigned

Bug Description

As discussed in this merge request:

https://code.launchpad.net/~widelands-dev/widelands/assert_removed/+merge/278269

It would be nice to have an UNREACHABLE macro for parts in the code that will never be reached.

It could be implemented differently for each compiler, for example for clang there is http://clang.llvm.org/docs/LanguageExtensions.html#builtin-unreachable.

Tags: cleanups
Revision history for this message
TiborB (tiborb95) wrote :

I think we already have it: NEVER_HERE()

Changed in widelands:
status: New → Fix Committed
Revision history for this message
GunChleoc (gunchleoc) wrote :

Yes we do :)

Changed in widelands:
milestone: none → build19-rc1
GunChleoc (gunchleoc)
Changed in widelands:
status: Fix Committed → Fix Released
Revision history for this message
GunChleoc (gunchleoc) wrote :

Fixed in build19-rc1.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.