mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-21 18:12:31 +00:00
for some compilers, assert != terminate... fixup make_enum
This commit is contained in:
parent
f11b7ac6e7
commit
694a2c4fd1
@ -179,6 +179,7 @@ PREFIX std::string CAT2(NAME,_to_string) (NAME val) \
|
||||
{ \
|
||||
BOOST_PP_SEQ_FOR_EACH(EXPANDENUMFUNCTIONREV, , MAKEPAIRS(CONTENT)) \
|
||||
assert(false && "Corrupted enum found with identifier NAME"); \
|
||||
throw 42; \
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user