3 ms·
That just ports all the problems to C... You're better off incrementally rewriting it in modern C++. Replace those raw pointers with references or smart pointe
by shrimp_emoji 3y ago
That just ports all the problems to C...
You're better off incrementally rewriting it in modern C++. Replace those raw pointers with references or smart pointers!
- sumtechguy 3y agoAll of that #define madness replace with templates and constexpr. I would also add if you can get it running on more than one compiler. G++ and MSvc and clang. Each one has its own subtle bits of errors it likes to throw out. Also get it running properly with something like valgrind. You are going to need it.
- sylware 3y ago... but you only need a C compiler, not a grotesquely and absurdely massive and complex c++ compiler. This is all wrong.
- shrimp_emoji 3y agoWhat, are you building the compiler yourself? :x It'll be way worse than those grotesquely and absurdly massive and complex compilers.