dangmoody / Temper

Single header-only testing framework written in C99.
MIT License
6 stars 1 forks source link

rename __temper_test_info_fetcher_ struct tags to something that doesnt start with double underscore #15

Closed dangmoody closed 2 years ago

dangmoody commented 2 years ago

Clang 13 has a bug where anything that gets #defined and starts with a double-underscore will trigger compiler errors EVEN IF you have -Wreserved-identifier warning disabled. This is on Windows only it looks like.

This is possibly broken for single underscore defines too since those are also reserved by the compiler IIRC, but I've not tested that.

There's a few GitHub issues for it on the Clang GitHub. It looks like someone has already patched it though, but that fix doesn't look to be out yet.

We can avoid this whole mess by just not having any #define start with a double underscore. So I propose renaming the following #defines to:

I have an experimental version of Temper with these changes already running in HLML if you want to preview it.

The only concern I have about this is that those names are quite similar and might affect readability, but those are the best names I can come up with right now.

dangmoody commented 2 years ago

This is now fixed in release v2.0.1.