Showing the changes to python/lib/gen_code.py (1 of 1 file). Show all
Unified · Split
| @@ -178,6 +178,10 @@ class MappedObject(object): · 177 unmodified lines | ||
| 178 | 178 | self.do_inputs = [get_params_types_names(self.do_proto)[1]] |
| 179 | 179 | self.do_outputs = get_params_types_names(self.do_proto)[2:] |
| 180 | 180 | struct_output_str = ["PyObject *{0[name]}; {1} c_{0[name]}".format(i, i['type'][:-1]) for i in self.do_outputs] |
| 181 | + if len(self.prototypes['rdo']): | |
| 182 | + rdo_outputs = get_params_types_names(prototypes['rdo'][0])[2:] | |
| 183 | + struct_output_str += ["PyObject *{0[name]}; {1} c_{0[name]}".format(i, i['type'][:-1]) for i in rdo_outputs] | |
| 184 | + self.outputs += rdo_outputs | |
| 181 | 185 | self.struct_outputs = ";\n ".join(struct_output_str) |
| 182 | 186 | |
| 183 | 187 | #print ("input_params: ", map(split_type, get_input_params(self.do_proto))) |