summaryrefslogtreecommitdiff
path: root/scipy/weave/examples/swig2_ext.h
diff options
context:
space:
mode:
Diffstat (limited to 'scipy/weave/examples/swig2_ext.h')
-rw-r--r--scipy/weave/examples/swig2_ext.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/scipy/weave/examples/swig2_ext.h b/scipy/weave/examples/swig2_ext.h
new file mode 100644
index 000000000..457bc97a0
--- /dev/null
+++ b/scipy/weave/examples/swig2_ext.h
@@ -0,0 +1,11 @@
+#include <iostream>
+class A {
+public:
+ void f() {std::cout << "A::f()\n";}
+};
+
+A* foo()
+{
+ A* a = new A;
+ return a;
+}