Re:How to write better game libraries
by LucaSas on Sunday December 08, 2019 @12:50PM
(#21737083)
Thanks for the comment, I might steal your "subset of C99 which compiles both in C and C++ mode on GCC, clang and MSVC" quote and put it in the article if that's ok ;)
[ Parent
| on HN ]
Re:How to write better game libraries
by matheusmoreira on Sunday December 08, 2019 @05:56PM
(#21739022)
Is there a benefit to building C code with a C++ compiler?
C++ has some stricter type checking by default, but most of this can be achieved by raising the warning level when compiled as C.
Nevertheless I received enough requests to make my C libraries 'C++ compliant' that I gave in :)
Re:How to write better game libraries
by colonwqbang on Sunday December 08, 2019 @06:52PM
(#21739337)
Only if your project is already mostly C++ and you would like to use your C++ compiler for everything, to keep the build process simpler.