diff options
Diffstat (limited to 'scipy/weave/examples/swig2_ext.h')
-rw-r--r-- | scipy/weave/examples/swig2_ext.h | 11 |
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; +} |