summaryrefslogtreecommitdiff
path: root/docs/examples/userguide/fusedtypes/pointer.pyx
blob: ad7758c1682b62d2625ab629329e737196693894 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
ctypedef fused my_fused_type:
    int
    double

cdef func(my_fused_type *a):
    print(a[0])


cdef int b = 3
cdef double c = 3.0

func(&b)
func(&c)