mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00:00
Replace the old STATIC_ASSERT macro with static_assert
This commit is contained in:
parent
8b108ed5f2
commit
9c348d057e
4 changed files with 8 additions and 20 deletions
|
@ -99,9 +99,9 @@ static MapgenDesc g_reg_mapgens[] = {
|
|||
{"v6", true},
|
||||
};
|
||||
|
||||
STATIC_ASSERT(
|
||||
static_assert(
|
||||
ARRLEN(g_reg_mapgens) == MAPGEN_INVALID,
|
||||
registered_mapgens_is_wrong_size);
|
||||
"g_reg_mapgens is wrong size");
|
||||
|
||||
////
|
||||
//// Mapgen
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue