Files
source/Strategic
c99f939fe6 stop pasting a directive name onto the comma after it
DIRECTIVE_TEXT builds four enumerator names from one directive name:

    #define DIRECTIVE_TEXT(id)  RCDT_##id##, RCDT_##id##_EFFECT, ...

The last ## on the first name has nothing to paste onto but the comma that
follows, and RCDT_GATHER_SUPPLIES, is not a token. The other three pastes are
well formed; only this one runs off the end of the name.

MSVC concatenates the text and re-lexes it, so it recovers the identifier and
the comma and produces the right enumerators; clang diagnoses it. Removing the
stray ## gives the same ten enumerations, and MISSION_TEXT just below already
spells it this way.

Verification:

    grep -rn '##[A-Za-z_]*##[,)]' --include=*.h --include=*.cpp .   # nothing
    ninja -C build parse         # token-paste class gone: 55 -> 45 sites
    ninja -C build -k 0          # Release, four applications, green
    ninja -C build-debug -k 0    # Debug, four applications, green

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-23 19:29:55 -03:00
..
2025-12-09 00:35:18 +02:00
2025-12-03 23:52:05 +02:00
2025-12-03 23:52:05 +02:00
2026-01-03 17:27:43 +02:00
2025-12-03 23:52:05 +02:00
2025-12-03 23:52:05 +02:00
2024-11-21 21:29:28 +02:00
2026-01-03 17:27:43 +02:00
2024-11-21 21:53:48 +02:00
2025-12-09 00:35:18 +02:00
2023-07-26 13:17:49 +03:00
2026-06-12 15:51:03 +03:00
2024-11-20 20:12:05 +02:00
2024-11-20 21:17:19 +02:00
2026-01-03 17:27:43 +02:00
2024-11-30 23:47:00 +02:00
2023-01-03 15:51:48 +02:00