Hi,
On Tue, Jan 19, 2016 at 11:45 AM, Rémi Bèges <
remi....@gmail.com> wrote:
> The @ffi.def_extern() decorator should be applied to a global function, but
> only once.
>
> Yet it seems I can call def_extern for each of my python callbacks. That
> seems rather contradictory or am I missing something ?
Ah! Thanks for pointing it out, I'll fix the wording. What this
sentence means is that you should call @ffi.def_extern() only once
*for each C name;* i.e. you should avoid to call @ffi.def_extern()
many times, dynamically, to re-attach different Python functions
to a given C function. But it is expected that you call
@ffi.def_extern() 4 times if you have 4 different "extern Python" C
functions.
A bientôt,
Armin.