correcting code generator for __constant parameters