summaryrefslogtreecommitdiff
path: root/scipy/weave/examples/swig2_ext.h
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2005-09-26 20:20:16 +0000
committerTravis Oliphant <oliphant@enthought.com>2005-09-26 20:20:16 +0000
commit45d01a4be1c4221132ba46d687e6af3a8df3329b (patch)
treece3be5290e918def7c7187e747c5460193b0ca85 /scipy/weave/examples/swig2_ext.h
parentccd1c3db37672627aa4fe0fdb5437f5dddc0fe86 (diff)
downloadnumpy-45d01a4be1c4221132ba46d687e6af3a8df3329b.tar.gz
Moved weave
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;
+}