Skip to content

Commit dd2536f

Browse files
committed
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! squash! fixup! Fix CI regressions
1 parent 20a2a69 commit dd2536f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

build_sdl.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def get_output(self) -> str:
207207

208208
def on_include_not_found(self, is_malformed: bool, is_system_include: bool, curdir: str, includepath: str) -> None: # noqa: ARG002, FBT001
209209
"""Remove bad includes such as stddef.h and stdarg.h."""
210-
assert "SDL3/SDL" not in includepath, includepath
210+
assert "SDL3/SDL" not in includepath, (includepath, curdir)
211211
raise pcpp.OutputDirective(pcpp.Action.IgnoreAndRemove)
212212

213213
def _should_track_define(self, tokens: list[Any]) -> bool:
@@ -270,7 +270,10 @@ def on_directive_handle(
270270
for match in matches:
271271
if Path(match, "SDL3/SDL_stdinc.h").is_file():
272272
SDL_INCLUDE = match
273-
assert SDL_INCLUDE, matches
273+
break
274+
else:
275+
raise AssertionError(matches)
276+
assert SDL_INCLUDE
274277

275278

276279
EXTRA_CDEF = """
@@ -298,6 +301,7 @@ def get_cdef() -> tuple[str, dict[str, str]]:
298301
parser = SDLParser()
299302
parser.add_path(temp_dir)
300303
parser.add_path(SDL_INCLUDE)
304+
assert Path(SDL_INCLUDE, "SDL3/SDL.h").exists(), SDL_INCLUDE
301305
parser.parse(
302306
"""
303307
// Remove extern keyword.

0 commit comments

Comments
 (0)