christophercrouzet / rexo

Neat single-file cross-platform unit testing framework for C/C++.
The Unlicense
27 stars 6 forks source link

How does automatic test case registration work? #12

Closed MarcusJohnson91 closed 2 years ago

MarcusJohnson91 commented 2 years ago

I'm reading your code to learn how to do this myself.

I've been trying to do it by building a static array at compile time using the preprocessor, ut I'm struggling to get that method to work.

Any tips? thanks

christophercrouzet commented 2 years ago

Hi @MarcusJohnson91,

I wrote about this specific topic in my blog, check it out: https://christophercrouzet.com/blog/dev/rexo-part-2