On May 13, 10:21 am, "Robbie Hatley"
<see.my.signat. ..@for.my.email .addresswrote:
[snip]
Not really, but you can do like I did in chapter 13 of "C Unleashed":
Windows line endings:
Unix line endings:
You will see that I generate the appropriate source code by defining a
macro. It's "somewhat template like" in a perverse sort of way. In
fact, the code turns into templates if you use C++ to compile it.
<see.my.signat. ..@for.my.email .addresswrote:
[snip]
So... is there any way of emulating templates in C?
Or do I just have to live with duplicate functions?
Or do I just have to live with duplicate functions?
Windows line endings:
Unix line endings:
You will see that I generate the appropriate source code by defining a
macro. It's "somewhat template like" in a perverse sort of way. In
fact, the code turns into templates if you use C++ to compile it.
Comment