summaryrefslogtreecommitdiff
path: root/gr-howto-write-a-block/swig/howto_swig.i
diff options
context:
space:
mode:
Diffstat (limited to 'gr-howto-write-a-block/swig/howto_swig.i')
-rw-r--r--gr-howto-write-a-block/swig/howto_swig.i21
1 files changed, 10 insertions, 11 deletions
diff --git a/gr-howto-write-a-block/swig/howto_swig.i b/gr-howto-write-a-block/swig/howto_swig.i
index d0bbcdc11..dd662b5e5 100644
--- a/gr-howto-write-a-block/swig/howto_swig.i
+++ b/gr-howto-write-a-block/swig/howto_swig.i
@@ -1,21 +1,20 @@
/* -*- c++ -*- */
+#define HOWTO_API
+
%include "gnuradio.i" // the common stuff
+//load generated python docstrings
+%include "howto_swig_doc.i"
+
+
%{
#include "howto_square_ff.h"
#include "howto_square2_ff.h"
%}
-%include "howto_square_ff.i"
-%include "howto_square2_ff.i"
+GR_SWIG_BLOCK_MAGIC(howto,square_ff);
+%include "howto_square_ff.h"
-#if SWIGGUILE
-%scheme %{
-(load-extension-global "libguile-gnuradio-howto_swig" "scm_init_gnuradio_howto_swig_module")
-%}
-
-%goops %{
-(use-modules (gnuradio gnuradio_core_runtime))
-%}
-#endif
+GR_SWIG_BLOCK_MAGIC(howto,square2_ff);
+%include "howto_square2_ff.h"