summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Blossom <eb@comsec.com>2011-01-05 19:56:00 -0800
committerEric Blossom <eb@comsec.com>2011-01-05 19:56:00 -0800
commitdad65db9c2046a113e704394beac01852ac2b35c (patch)
tree560103a5c24ebd09e8f1b19c01573b6d801b2cb5
parent7c78b8501ac6e9f386c9d4c0315913f6d3c72617 (diff)
Have swig/guile wrap enums and constants as scheme variables, not functions.
-rw-r--r--gnuradio-core/src/lib/swig/gnuradio.i5
-rw-r--r--gnuradio-examples/waveforms/dial-tone.wfd4
2 files changed, 7 insertions, 2 deletions
diff --git a/gnuradio-core/src/lib/swig/gnuradio.i b/gnuradio-core/src/lib/swig/gnuradio.i
index 1601cca127..1856d50076 100644
--- a/gnuradio-core/src/lib/swig/gnuradio.i
+++ b/gnuradio-core/src/lib/swig/gnuradio.i
@@ -37,6 +37,11 @@
%feature("autodoc","1");
+#ifdef SWIGGUILE
+// Export constants and enums as scheme variables, not functions.
+%feature("constasvar");
+#endif
+
// local file
%include <gr_shared_ptr.i>
diff --git a/gnuradio-examples/waveforms/dial-tone.wfd b/gnuradio-examples/waveforms/dial-tone.wfd
index ced3df572b..5ab60075a7 100644
--- a/gnuradio-examples/waveforms/dial-tone.wfd
+++ b/gnuradio-examples/waveforms/dial-tone.wfd
@@ -30,8 +30,8 @@
(ampl 0.1))
(blocks
- (src0 (gr:sig-source-f sample-rate (gr:GR-SIN-WAVE) 350 ampl))
- (src1 (gr:sig-source-f sample-rate (gr:GR-SIN-WAVE) 440 ampl))
+ (src0 (gr:sig-source-f sample-rate gr:GR-SIN-WAVE 350 ampl))
+ (src1 (gr:sig-source-f sample-rate gr:GR-SIN-WAVE 440 ampl))
(sink (gr:audio-alsa-sink sample-rate "plughw:0,0"))
)