summaryrefslogtreecommitdiff
path: root/gr-utils/python
diff options
context:
space:
mode:
authorMarcus Müller <marcus.mueller@student.kit.edu>2013-07-26 11:25:49 +0200
committerMarcus Müller <marcus.mueller@student.kit.edu>2013-07-26 11:25:49 +0200
commit4d336a23f5ec6400ff071aafe686af8c96bc97ee (patch)
tree31b25c10812368d3995eac712173b33eee6a5f4b /gr-utils/python
parent61282ced0f0514449dee74c0646905f3f3d2c9e5 (diff)
removed *out from sinks, *in from sources
Diffstat (limited to 'gr-utils/python')
-rw-r--r--gr-utils/python/modtool/templates.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/gr-utils/python/modtool/templates.py b/gr-utils/python/modtool/templates.py
index 227a8d3971..47314891c0 100644
--- a/gr-utils/python/modtool/templates.py
+++ b/gr-utils/python/modtool/templates.py
@@ -228,8 +228,16 @@ namespace gr {
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items)
{
+#if $blocktype == 'source'
+#silent pass
+#else
const <+ITYPE+> *in = (const <+ITYPE+> *) input_items[0];
+#end if
+#if $blocktype == 'sink'
+#silent pass
+#else
<+OTYPE+> *out = (<+OTYPE+> *) output_items[0];
+#end if
// Do <+signal processing+>