Changeset a243d10


Ignore:
Timestamp:
Aug 14, 2018, 1:06:34 AM (16 months ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master
Children:
a2ed169
Parents:
0173e4a
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/lib/gen_code.py

    r0173e4a ra243d10  
    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
Note: See TracChangeset for help on using the changeset viewer.