[plt-scheme] foreign: am I missing something basic?
On Thu, Sep 24, 2009 at 3:15 AM, Dave Herman <dherman at ccs.neu.edu> wrote:
> (define peek-inside
> (get-ffi-obj 'peek_inside lib (_cprocedure (list _scheme) _short)))
An idiomatic definition would be:
(_fun _scheme -> _short)
instead of your _cprocedure definition.
Perhaps the issue is one of calling conventions? I know Windows uses
the "Pascal" (stdcall?) calling convention for it's libraries. Perhaps
shared libraries are automatically defined with this convention?
N.