Re: FFI newby question: importing C functions

  • From: Mike Pall <mike-1206@xxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Tue, 26 Jun 2012 23:54:03 +0200

QuentinC wrote:
> But it doesn't work if the imported function is __stdcall, even if
> __stdcall is specified both in C and in lua.
> I think it's about "func@XX" naming, is there a way to work around ?

That's strange. What's the function signature and what's the
decorated name generated by the C compiler?

BTW: __stdcall is *not* faster or better in any way. In fact, it's
slower on modern CPUs. Ditto for __fastcall, except for the cases
with up to two integer or pointer arguments.

--Mike

Other related posts: