forked from mirror/OpenTTD
Codechange: Replace assert_compile macro with static_assert
This commit is contained in:
@@ -1783,7 +1783,7 @@ static const StringID _game_settings_restrict_dropdown[] = {
|
||||
STR_CONFIG_SETTING_RESTRICT_CHANGED_AGAINST_DEFAULT, // RM_CHANGED_AGAINST_DEFAULT
|
||||
STR_CONFIG_SETTING_RESTRICT_CHANGED_AGAINST_NEW, // RM_CHANGED_AGAINST_NEW
|
||||
};
|
||||
assert_compile(lengthof(_game_settings_restrict_dropdown) == RM_END);
|
||||
static_assert(lengthof(_game_settings_restrict_dropdown) == RM_END);
|
||||
|
||||
/** Warnings about hidden search results. */
|
||||
enum WarnHiddenResult {
|
||||
|
Reference in New Issue
Block a user