diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2014-03-14 23:17:58 +0100 |
---|---|---|
committer | Sylvain Munaut <tnt@246tNt.com> | 2014-03-15 07:18:20 +0100 |
commit | 6a78af5919133fdc339b09bb1622e876365a4d19 (patch) | |
tree | 84911bcf90be76ea212c2f25e2f752b1a442be60 /gr-qtgui/lib/histogram_sink_f_impl.h | |
parent | 69dcaa75b629af4ebc465a073f54af84b7c75a11 (diff) |
gr-qtgui: Use dummy void* return value for pywidget if !ENABLE_PYTHON
This has two benefits:
- If ENABLE_PYTHON is disabled during build, the method will still be
there and just return NULL
- During build of external projects / apps that don't necessarely want
to have python included in the build, the exposed vtable is the same
as the one from GR (whether or not python was enabled during GR build)
Without this, using those block from outside without the exact same option
as during GR build would result in crash.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'gr-qtgui/lib/histogram_sink_f_impl.h')
-rw-r--r-- | gr-qtgui/lib/histogram_sink_f_impl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gr-qtgui/lib/histogram_sink_f_impl.h b/gr-qtgui/lib/histogram_sink_f_impl.h index e2558890b9..58d43e49d1 100644 --- a/gr-qtgui/lib/histogram_sink_f_impl.h +++ b/gr-qtgui/lib/histogram_sink_f_impl.h @@ -72,6 +72,8 @@ namespace gr { #ifdef ENABLE_PYTHON PyObject* pyqwidget(); +#else + void* pyqwidget(); #endif void set_y_axis(double min, double max); |