mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-25 08:22:17 +00:00
Codechange: Replace assert_compile macro with static_assert
This commit is contained in:
@@ -620,4 +620,4 @@ static const NIFeature * const _nifeatures[] = {
|
||||
&_nif_tramtype, // GSF_TRAMTYPES
|
||||
&_nif_town, // GSF_FAKE_TOWNS
|
||||
};
|
||||
assert_compile(lengthof(_nifeatures) == GSF_FAKE_END);
|
||||
static_assert(lengthof(_nifeatures) == GSF_FAKE_END);
|
||||
|
||||
Reference in New Issue
Block a user