Since the discussion is tangential to the subject of the original topic, I split this interesting and valuable conversation off to a dedicated forum topic.
Please carry on with discussion of the sketch preprocessor problem here.
Discussion on other subjects directly related to the Arduino IDE 2.3.10 release announcement can be conducted in the other topic.