Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Translating .cpp to .c

Name: Anonymous 2013-08-14 1:02

is there some automation tool that converts C++ to C code?

Name: Anonymous 2013-08-14 3:58

You don't need a tool, just make a script.
1. Remove all member functions from classes to the global namespace.
2. Convert all classes to structures.
3. Use function pointers to point to the former member functions.
4. Replace all new with malloc().
5. Replace all template shit with void*.

Literally could not be any fucking simpler.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List