1. Python CFFI
  2. Untitled project
  3. cffi
  4. Issues
Issue #11 resolved

Exception raised using function pointer as function argument.

Aaron Iles
created an issue

The following code snippet raises NotImplementedError at cffi/verifiery.py:171.

{{{ from cffi import FFI

ffi = FFI() ffi.cdef(""" void qsort(void base, size_t nel, size_t width, int (compar)(const void , const void )); """) ffi.verify("#include <stdlib.h>") }}}

The printed error message is:

{{{ NotImplementedError: <int(*)(void const * , void const * )> }}}

Tested against development trunk, revision 619:d331e7610d12.

Comments (1)

  1. Log in to comment