This is the mail archive of the
libffi-discuss@sources.redhat.com
mailing list for the libffi project.
RE: SWIG and callback wrappers
- From: "Sam Liddicott" <sam dot liddicott at ananova dot com>
- To: "Sam Liddicott" <sam dot liddicott at ananova dot com>, <libffi-discuss at sources dot redhat dot com>
- Date: Mon, 29 Apr 2002 14:42:19 +0100
- Subject: RE: SWIG and callback wrappers
Reading through the source code I find that "trampoline"-"closures" are just
what I need.
Could I beg some examples on setting up and using closures?
The old libff allowed:
function = alloc_trampoline(address, variable, data);
free_trampoline(function);
is_trampoline(function)
trampoline_address(function)
trampoline_variable(function)
trampoline_data(function)
Are closures re-entrant?
Sam