mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-29 09:29:10 +00:00
Codechange: Replace assert_compile macro with static_assert
This commit is contained in:
@@ -390,7 +390,7 @@ const char *GetTextfile(TextfileType type, Subdirectory dir, const char *filenam
|
||||
"changelog",
|
||||
"license",
|
||||
};
|
||||
assert_compile(lengthof(prefixes) == TFT_END);
|
||||
static_assert(lengthof(prefixes) == TFT_END);
|
||||
|
||||
const char *prefix = prefixes[type];
|
||||
|
||||
|
Reference in New Issue
Block a user