support for c++ DD&P code gen