I ported Rein's code to C++, the code can be found in SVN under project
Main C and C++ code differences are that in C++ version I created type
definitions matrix and vector, on top of the types I added methods
overriding. Is this is enough for now ? Any suggestions are welcome.
I added CppTest framework to our project. Currently there are no useful
tests, but now it is possible to write those with ease. Example test
suites cab be run adding --runtests parameter to the executable.
The thing needs some setup before you can use it. Here is a brief
outline for that:
* Compile cpptest into a static library and leave the result (probably
cpptest.a) into cpptest subdirectory. Under Windows I only needed to
invoke gcc on cpptest/src/* and add cpptest/win/config.h for inclusion.
Under linux this thing might be trickier.
* Edit your cg_cpp project
- add ../cpptest/src to include path
- add ../cpptest/cpptest.a as library to linker
* Now cg_cpp should compile without errors
You can write and save your tests under cg_cpp/tests directory.
More about CppTest can be found here: