fix c++ create implementation macro