mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Merge pull request #36461 from akien-mga/c++17-fallthrough-attribute
Replace FALLTHROUGH macro by C++17 [[fallthrough]]
This commit is contained in:
commit
bd10c70458
25 changed files with 75 additions and 88 deletions
|
@ -343,7 +343,7 @@ StringName GDScriptTokenizer::get_token_literal(int p_offset) const {
|
|||
default: {
|
||||
}
|
||||
}
|
||||
}
|
||||
} break;
|
||||
case TK_OP_AND:
|
||||
case TK_OP_OR:
|
||||
break; // Don't get into default, since they can be non-literal
|
||||
|
@ -539,7 +539,7 @@ void GDScriptTokenizerText::_advance() {
|
|||
ignore_warnings = true;
|
||||
}
|
||||
#endif // DEBUG_ENABLED
|
||||
FALLTHROUGH;
|
||||
[[fallthrough]];
|
||||
}
|
||||
case '\n': {
|
||||
line++;
|
||||
|
@ -756,7 +756,7 @@ void GDScriptTokenizerText::_advance() {
|
|||
}
|
||||
INCPOS(1);
|
||||
is_string_name = true;
|
||||
FALLTHROUGH;
|
||||
[[fallthrough]];
|
||||
case '\'':
|
||||
case '"': {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue