danmar / simplecpp

C++ preprocessor
BSD Zero Clause License
204 stars 80 forks source link

Allow reexpansion of currently expanding macros during argument evaluation #364

Closed datadiode closed 14 hours ago

datadiode commented 1 month ago

This fixes #31 as reproduced in TEST_CASE(define_define_11) without breaking code from @ydamigos's comment to #225 as reproduced in TEST_CASE(define_define_11a). It thereby also fixes #293.

Subsequent commits in this PR address #66, #130, #241, #296.

danmar commented 14 hours ago

@datadiode I am very sorry for so slow review!! Excellent work.

danmar commented 14 hours ago

I would just like to replace the isspace with std::isspace but I can try to do that later.