Changeset a243d10 for python


Ignore:
Timestamp:
Aug 14, 2018, 1:06:34 AM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, 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.