Add braces inside #define macro bodies

This commit is contained in:
Rangi42
2025-01-27 19:59:06 -05:00
committed by Rangi
parent 4e44958d26
commit 79401cce8b
5 changed files with 18 additions and 9 deletions

View File

@@ -347,12 +347,14 @@ static void writeSymBank(SortedSections const &bankSections, SectionType type, u
for (auto it = bankSections.zeroLenSections.begin(); \
it != bankSections.zeroLenSections.end(); \
it++) { \
for (Section const *sect = *it; sect; sect = sect->nextu.get()) \
for (Section const *sect = *it; sect; sect = sect->nextu.get()) { \
__VA_ARGS__ \
} \
} \
for (auto it = bankSections.sections.begin(); it != bankSections.sections.end(); it++) { \
for (Section const *sect = *it; sect; sect = sect->nextu.get()) \
for (Section const *sect = *it; sect; sect = sect->nextu.get()) { \
__VA_ARGS__ \
} \
} \
} while (0)