summaryrefslogtreecommitdiff
path: root/gr-howto-write-a-block-cmake/swig/howto_swig.i
diff options
context:
space:
mode:
Diffstat (limited to 'gr-howto-write-a-block-cmake/swig/howto_swig.i')
-rw-r--r--gr-howto-write-a-block-cmake/swig/howto_swig.i9
1 files changed, 7 insertions, 2 deletions
diff --git a/gr-howto-write-a-block-cmake/swig/howto_swig.i b/gr-howto-write-a-block-cmake/swig/howto_swig.i
index d0bbcdc11..52100057c 100644
--- a/gr-howto-write-a-block-cmake/swig/howto_swig.i
+++ b/gr-howto-write-a-block-cmake/swig/howto_swig.i
@@ -1,5 +1,7 @@
/* -*- c++ -*- */
+#define HOWTO_API
+
%include "gnuradio.i" // the common stuff
%{
@@ -7,8 +9,11 @@
#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"
+
+GR_SWIG_BLOCK_MAGIC(howto,square2_ff);
+%include "howto_square2_ff.h"
#if SWIGGUILE
%scheme %{