Files
MoreTore/scripts/lint/check_raylib_includes.sh
Vehicle Researcher 551d088497 openpilot v0.10.0
2025-09-22 21:17:34 -07:00

11 lines
256 B
Bash
Executable File

#!/usr/bin/env bash
FAIL=0
if grep -n '#include "third_party/raylib/include/raylib\.h"' $@ | grep -v '^system/ui/raylib/raylib\.h'; then
echo -e "Bad raylib include found! Use '#include \"system/ui/raylib/raylib.h\"' instead\n"
FAIL=1
fi
exit $FAIL