Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Cython / tests / compile / const_decl.pyx
Size: Mime:
# mode: compile

cdef const_args(const int a, const int *b, const (int*) c, int *const d):
    print a
    print b[0]
    b = NULL    # OK, the pointer itself is not const
    c[0] = 4    # OK, the value is not const
    d[0] = 7    # OK, the value is not const

def call_const_args(x):
    cdef int k = x
    const_args(x, &k, &k, &k)