summaryrefslogtreecommitdiff
path: root/gnuradio-core/src/lib
diff options
context:
space:
mode:
authorEric Blossom2011-01-05 19:56:00 -0800
committerEric Blossom2011-01-05 19:56:00 -0800
commitdad65db9c2046a113e704394beac01852ac2b35c (patch)
tree560103a5c24ebd09e8f1b19c01573b6d801b2cb5 /gnuradio-core/src/lib
parent7c78b8501ac6e9f386c9d4c0315913f6d3c72617 (diff)
downloadgnuradio-dad65db9c2046a113e704394beac01852ac2b35c.tar.gz
gnuradio-dad65db9c2046a113e704394beac01852ac2b35c.tar.bz2
gnuradio-dad65db9c2046a113e704394beac01852ac2b35c.zip
Have swig/guile wrap enums and constants as scheme variables, not functions.
Diffstat (limited to 'gnuradio-core/src/lib')
-rw-r--r--gnuradio-core/src/lib/swig/gnuradio.i5
1 files changed, 5 insertions, 0 deletions
diff --git a/gnuradio-core/src/lib/swig/gnuradio.i b/gnuradio-core/src/lib/swig/gnuradio.i
index 1601cca12..1856d5007 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>