summaryrefslogtreecommitdiff
path: root/gnuradio-core/src/lib/general/gr_feval.cc
diff options
context:
space:
mode:
authoreb2006-10-24 21:03:11 +0000
committereb2006-10-24 21:03:11 +0000
commit4a03552c34d5d400afb29b8bf90b41f8c5b08464 (patch)
treec8c9ee543f24102a7a8eeba2e68dd8a586cd1a0b /gnuradio-core/src/lib/general/gr_feval.cc
parent93366b0cc2b423e47ac21b261e3944096f25b53e (diff)
downloadgnuradio-4a03552c34d5d400afb29b8bf90b41f8c5b08464.tar.gz
gnuradio-4a03552c34d5d400afb29b8bf90b41f8c5b08464.tar.bz2
gnuradio-4a03552c34d5d400afb29b8bf90b41f8c5b08464.zip
added void callback to feval family
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@3847 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-core/src/lib/general/gr_feval.cc')
-rw-r--r--gnuradio-core/src/lib/general/gr_feval.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/gnuradio-core/src/lib/general/gr_feval.cc b/gnuradio-core/src/lib/general/gr_feval.cc
index 532a14018..3617620b5 100644
--- a/gnuradio-core/src/lib/general/gr_feval.cc
+++ b/gnuradio-core/src/lib/general/gr_feval.cc
@@ -50,6 +50,14 @@ gr_feval_ll::eval(long x)
return 0;
}
+gr_feval::~gr_feval(){}
+
+void
+gr_feval::eval(void)
+{
+ // nop
+}
+
/*
* Trivial examples showing C++ (transparently) calling Python
*/
@@ -70,3 +78,9 @@ gr_feval_ll_example(gr_feval_ll *f, long x)
{
return f->eval(x);
}
+
+void
+gr_feval_example(gr_feval *f)
+{
+ f->eval();
+}