Skip to content

Commit bbf8b62

Browse files
committed
Catch sneaky whitespace when culling va_list functions
1 parent aa7a0e7 commit bbf8b62

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/python-package.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
strategy:
7272
matrix:
7373
os: ["windows-latest", "macos-latest"]
74-
sdl-version: ["2.0.14", "2.0.16"]
74+
sdl-version: ["2.0.14", "2.0.16", "2.30.0"]
7575
fail-fast: true
7676
steps:
7777
- uses: actions/checkout@v4

build_sdl.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
# Used to remove excessive newlines in debug outputs.
3434
RE_NEWLINES = re.compile(r"\n\n+")
3535
# Functions using va_list need to be culled.
36-
RE_VAFUNC = re.compile(r"^.*?\([^()]*va_list[^()]*\);$", re.MULTILINE)
36+
RE_VAFUNC = re.compile(r"^.*?\([^()]*va_list[^()]*\)\s*;\s*$", re.MULTILINE)
3737
# Static inline functions need to be culled.
3838
RE_INLINE = re.compile(r"^static inline.*?^}$", re.MULTILINE | re.DOTALL)
3939
# Most SDL_PIXELFORMAT names need their values scrubbed.

0 commit comments

Comments
 (0)