Commit d31375f5 authored by Robert Bradshaw's avatar Robert Bradshaw

Tests for cpdef extern func wrapping.

parent 4e6e9f4d
cdef extern from "math.h":
cpdef double pxd_sqrt "sqrt"(double)
__doc__ = """
>>> sqrt(1)
1.0
>>> pyx_sqrt(4)
2.0
>>> pxd_sqrt(9)
3.0
>>> log(10)
Traceback (most recent call last):
NameError: name 'log' is not defined
"""
cdef extern from "math.h":
cpdef double sqrt(double)
cpdef double pyx_sqrt "sqrt"(double)
cdef double log(double) # not wrapped
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