danmar / simplecpp

C++ preprocessor
BSD Zero Clause License
191 stars 73 forks source link

`__cplusplus` not set when `DUI::std` is empty/invalid #352

Open firewave opened 1 month ago

firewave commented 1 month ago

The __cplusplus macro is not set when the provide DUI::std is either empty or invalid. This might lead to unexpected behavior.

firewave commented 1 month ago
firewave commented 1 month ago
  • if the provided standard is invalid we should bail out

With #312 merged we do not bail out but provide an error via OutputList to indicate that the given standard is unknown.