mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-26 07:59:09 +00:00
Codechange: Replace assert_compile macro with static_assert
This commit is contained in:
@@ -25,7 +25,7 @@ static const uint SIG_TBD_SIZE = 256; ///< number of intersections - open nod
|
||||
static const uint SIG_GLOB_SIZE = 128; ///< number of open blocks (block can be opened more times until detected)
|
||||
static const uint SIG_GLOB_UPDATE = 64; ///< how many items need to be in _globset to force update
|
||||
|
||||
assert_compile(SIG_GLOB_UPDATE <= SIG_GLOB_SIZE);
|
||||
static_assert(SIG_GLOB_UPDATE <= SIG_GLOB_SIZE);
|
||||
|
||||
/** incidating trackbits with given enterdir */
|
||||
static const TrackBits _enterdir_to_trackbits[DIAGDIR_END] = {
|
||||
|
Reference in New Issue
Block a user