C++ helper scripts