mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Use a Defer struct to close files and restore lexer state with RAII (#1379)
This commit is contained in:
@@ -1113,7 +1113,7 @@ void process() {
|
||||
case ProtoPalette::THEY_BIGGER:
|
||||
// Do nothing, they already contain us
|
||||
attrs.protoPaletteID = n;
|
||||
goto contained;
|
||||
goto continue_visiting_tiles; // Can't `continue` from within a nested loop
|
||||
|
||||
case ProtoPalette::NEITHER:
|
||||
break; // Keep going
|
||||
@@ -1139,7 +1139,7 @@ void process() {
|
||||
);
|
||||
}
|
||||
protoPalettes.push_back(tileColors);
|
||||
contained:;
|
||||
continue_visiting_tiles:;
|
||||
}
|
||||
|
||||
options.verbosePrint(
|
||||
|
||||
Reference in New Issue
Block a user