Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion util/strip.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,9 @@ def scan(file: str) -> list[str]:
in_unit = None
continue
if line.startswith('#else /* __UNIT_TEST__ */'):
in_unit = 'else'
# Keep the side that isn't for unit tests (after
# '#ifndef __UNIT_TEST__' that is the first side).
in_unit = 'if' if in_unit == 'else' else 'else'
continue
if in_unit == 'if':
continue
Expand Down