Use CHECK instead of ASSERT for unexpectedly reached case

Signed-off-by: Ferenc Géczi <ferenc.gm@gmail.com>
This commit is contained in:
Ferenc Géczi 2024-12-17 00:00:00 +00:00 committed by Konstantin Pastbin
parent 2c65f4ca90
commit 1360ca3db6

View file

@ -79,7 +79,7 @@ MapStyle GetDarkMapStyleVariant(MapStyle mapStyle)
case MapStyleOutdoorsLight:
return MapStyleOutdoorsDark;
default:
ASSERT(false, ());
CHECK(false, ());
return MapStyleDefaultDark;
}
}
@ -98,7 +98,7 @@ MapStyle GetLightMapStyleVariant(MapStyle mapStyle)
case MapStyleOutdoorsDark:
return MapStyleOutdoorsLight;
default:
ASSERT(false, ());
CHECK(false, ());
return MapStyleDefaultLight;
}
}