Further tweak CPPDEFINES repleacement in scanner
commit0cb87375ad87f3d6cc77e1fdcf0e819bad400b54
authorMats Wichmann <mats@linux.com>
Wed, 27 Nov 2024 17:39:12 +0000 (27 10:39 -0700)
committerMats Wichmann <mats@linux.com>
Fri, 13 Dec 2024 22:40:59 +0000 (13 15:40 -0700)
treea728f77d7de22ab4e703c3baf4731b39ddca0c71
parent38261a8202c848d309c0ff0a6b53383e4cce7d2f
Further tweak CPPDEFINES repleacement in scanner

Replacement is now limited to five passes, to avoid going into an endless
loop in pathlogical cases where there are three or more macros that
circularly refer to each other. No error is reported in this case.

Replacement is now only done for the otional C Conditional scanner,
not for the classical C scanner.

Signed-off-by: Mats Wichmann <mats@linux.com>
CHANGES.txt
RELEASE.txt
SCons/Scanner/C.py
SCons/Scanner/CTests.py