History

python/lib/gen_code.py: also create outputs for rdo

Paul Brossier committed 8 years ago

Commit a243d101 parent 0173e4a1 file · +4 −0Browse files

Showing the changes to python/lib/gen_code.py (1 of 1 file). Show all

Unified · Split

python/lib/gen_code.py+4−0
@@ -178,6 +178,10 @@ class MappedObject(object): · 177 unmodified lines
178178 self.do_inputs = [get_params_types_names(self.do_proto)[1]]
179179 self.do_outputs = get_params_types_names(self.do_proto)[2:]
180180 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
181185 self.struct_outputs = ";\n ".join(struct_output_str)
182186
183187 #print ("input_params: ", map(split_type, get_input_params(self.do_proto)))

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t