Got C++ generator working