summaryrefslogtreecommitdiff
path: root/gr-analog/grc
diff options
context:
space:
mode:
authorVolker Schroer <3470424+dl1ksv@users.noreply.github.com>2021-06-23 12:11:27 +0200
committermormj <34754695+mormj@users.noreply.github.com>2021-07-19 07:01:47 -0400
commitf88f8a89b08b3268f44d4e25718a88b80d7d4692 (patch)
tree4ddf0b043d11a9b8321de1f71af3499017ebbc5a /gr-analog/grc
parentba8fff945d92ee53cf9c37a97e2eb50d3f368c76 (diff)
grc: introduce gui_hint for cpp code generation
At the moment some qtgui windows do support only very simple gui hints, as the parse_gui_hint in param.py generates independently of the output language only python code. This is fixed here, so the gui_hint() can be used in cpp code generation. To test more complex gui hints the qtgui_tab_widget was extended to cpp. After that compiling the generated cpp code for some examples led to /usr/include/python3.9/object.h:206:23: Fehler: expected unqualified-id before »;« token 206 | PyType_Slot *slots; /* terminated by slot==0. */ This is a known error and can be fixed by ifdef ENABLE_PYTHON pragma push_macro("slots") undef slots include "Python.h" pragma pop_macro("slots") endif instead of simply ifdef ENABLE_PYTHON include "Python.h" endif which was applied to the corresponding gr-qtgui header files. Signed-off-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com>
Diffstat (limited to 'gr-analog/grc')
0 files changed, 0 insertions, 0 deletions