On Thu, Jun 11, 2015 at 10:09 AM Michael Enßlin wrote:
> Hi guys,
>
> have a look at this:
>
> $ cat bar.pyx
> cdef extern from "foo.h":
> cdef cppclass Foo:
> int operator() (int arg)
> int do_call (int arg)
>
>
> cdef int bar(int arg):
> cdef Foo foo
> foo.do_call(ar
Hi guys,
have a look at this:
$ cat bar.pyx
cdef extern from "foo.h":
cdef cppclass Foo:
int operator() (int arg)
int do_call (int arg)
cdef int bar(int arg):
cdef Foo foo
foo.do_call(arg)
return foo(arg)
$ cython3 --cplus bar.pyx
$ cat bar.cpp
(...)
static in