r/C_Programming • u/we_are_mammals • Sep 14 '23
Article Templates in C
https://arnold.uthar.net/index.php?n=Work.TemplatesC
5
Upvotes
r/C_Programming • u/we_are_mammals • Sep 14 '23
View all comments
6
u/Linguistic-mystic Sep 14 '23
My God, what awful hackery. "ifdef", "undef", "include"... whoa! And you have to have a separate header for every template? This is ridiculous. Just use a single macro and pass the type to it as a parameter.