Commit 82ca1aff authored by Robert Bradshaw's avatar Robert Bradshaw

cython submodule cimport test

parent ff0b1b1e
cimport cython.operator
from cython.operator cimport dereference
from cython.operator cimport dereference as deref
def test_deref(int x):
"""
>>> test_deref(3)
3
(3, 3, 3)
>>> test_deref(5)
5
(5, 5, 5)
"""
cdef int* x_ptr = &x
return cython.operator.dereference(x_ptr)
return cython.operator.dereference(x_ptr), dereference(x_ptr), deref(x_ptr)
def increment_decrement(int x):
"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment