mirror of
https://github.com/godotengine/godot.git
synced 2025-10-27 11:44:21 +00:00
Replace std::size usage with std_size to avoid <iterator> include.
This commit is contained in:
parent
6d33ad2917
commit
1db0a60dc0
40 changed files with 69 additions and 66 deletions
|
|
@ -4241,7 +4241,7 @@ GDScriptParser::ParseRule *GDScriptParser::get_rule(GDScriptTokenizer::Token::Ty
|
|||
};
|
||||
/* clang-format on */
|
||||
// Avoid desync.
|
||||
static_assert(std::size(rules) == GDScriptTokenizer::Token::TK_MAX, "Amount of parse rules don't match the amount of token types.");
|
||||
static_assert(std_size(rules) == GDScriptTokenizer::Token::TK_MAX, "Amount of parse rules don't match the amount of token types.");
|
||||
|
||||
// Let's assume this is never invalid, since nothing generates a TK_MAX.
|
||||
return &rules[p_token_type];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue