Add STATIC_ASSERT_INCOMPLETE_TYPE to enforce include minimality.

Add enforcements against `Dictionary` for `ustring.h` and two for `Dictionary` and `String` from `array.h`.
This commit is contained in:
Lukas Tenbrink
2025-06-16 12:15:23 +02:00
parent caefb0f1c1
commit 712bc99668
4 changed files with 26 additions and 0 deletions

View File

@ -634,6 +634,7 @@ if env["strict_checks"]:
# Run SCU file generation script if in a SCU build.
if env["scu_build"]:
env.Append(CPPDEFINES=["SCU_BUILD_ENABLED"])
max_includes_per_scu = 8
if env.dev_build:
max_includes_per_scu = 1024