Skip to content

Commit

Permalink
Update whatsnew.rst with the recent PR
Browse files Browse the repository at this point in the history
  • Loading branch information
arigo authored Dec 21, 2023
1 parent 758a88f commit feaff37
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions doc/source/whatsnew.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@
What's New
======================

v1.17
=====

* In API mode, when you get a function from a C library by writing
`fn = lib.myfunc`, you get an object of a special type for performance
reasons, instead of a `<cdata 'C-function-type'>`. Before version 1.17
you could only call such objects. You could write
`ffi.addressof(lib, "myfunc")` in order to get a real `<cdata>` object,
based on the idea that in these cases in C you'd usually write `&myfunc`
instead of `myfunc`. In version 1.17, the special object
`lib.myfunc` can now be passed in many places where CFFI expects
a regular `<cdata>` object. For example, you can now pass
it as a callback to a C function call, or write it inside a C
structure field of the correct pointer-to-function type, or use
`ffi.cast()` or `ffi.typeof()` on it.

v1.16.0rc1
==========

Expand Down

0 comments on commit feaff37

Please sign in to comment.