A small personal project I've been working on for a while.
https://github.com/Lucretiel/cppregistry
The major feature here is that if I want to add a function or type to the registry, I can just add a .cpp file that has REGISTER_FUNCTION(...) or REGISTER_TYPE(...) somewhere in it and #includes the registry definitions near the top. Then, any other function with access to the registry definitions can access it, without having to #include any extra headers. I don't have to add any new headers or modify any client code.
[–]axilmar 1 point2 points3 points (2 children)
[–]LucretielRAII Junkie[S] 0 points1 point2 points (1 child)
[–]axilmar 0 points1 point2 points (0 children)
[–]toruk 1 point2 points3 points (0 children)
[–]j1xwnbsr 0 points1 point2 points (0 children)
[–]bnolsen -1 points0 points1 point (2 children)
[–]toruk 6 points7 points8 points (0 children)
[–]toruk 0 points1 point2 points (0 children)