On 04 Jan 2011, at 07:00, Andrew Haines wrote:
Can something like this be added to the compiler so that when it
detects
a TMethod being assigned to a "plain" callback type it inserts some
code
to call my function?
I doubt it. There is also already a project out there whose sole focus
is on offering a high level interface to calling functions with
different calling conventions, and afaik it also contains trampoline
support. See http://sourceware.org/libffi/ for more information.
Jonas
_______________________________________________
fpc-devel maillist - [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel