VCCE / VCC

Tandy Color Computer 3 Emulator
GNU General Public License v3.0
68 stars 22 forks source link

Code is split between C and C++ #49

Open BGPierce opened 3 years ago

BGPierce commented 3 years ago

(from old issues page) ursine commented on Dec 14, 2016 The VCC code base is currently made up of a hybrid of C files and C++ files. The compiler decides which it is by checking the extension: ".c" gets compiled using the C compiler, ".cpp" gets the C++ compiler.

Currently VS 2015 does not completely support modern C and this causes some minor hand holding to be required. Changing all of the .c extensions to .cpp will cause the C++ compiler to be invoked, giving access to modern code features of C++11/14, as well as the use of the common subset of modern C.

It should be as simple as changing the extensions and submitting it, but there's always possible issues. I plan to do this shortly. (If there are any concerns please discuss soon)

ejaquay commented 3 years ago

C and C++ have different scoping and mangling rules. Changing how source is compiled would require code changes. More pain than gain in my opinion.