robertwb / issues-import-test

0 stars 0 forks source link

NULL is "Invalid compile-time expression" with embedsignature=True #996

Closed robertwb closed 9 years ago

robertwb commented 9 years ago

With Cython 0.22, Cythonizing

#cython: embedsignature=True
def foo(char* v=NULL):
    pass

gives

Error compiling Cython file:
------------------------------------------------------------
...
#cython: embedsignature=True
def foo(char* v=NULL):
               ^
------------------------------------------------------------

example.pyx:2:16: Invalid compile-time expression

The compilations works fine with embedsignature=False.

Migrated from http://trac.cython.org/ticket/843

robertwb commented 9 years ago

scoder changed owner from somebody to scoder status from new to assigned https://github.com/cython/cython/commit/9139a7f836151fb5bdb1624a05dce13b1bb17164

robertwb commented 9 years ago

scoder changed milestone from 1.0 to 0.23 priority from major to minor resolution to fixed status from assigned to closed