Re: ffi and inline functions

  • From: Fjölnir Ásgeirsson <fjolnir@xxxxxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Mon, 14 May 2012 14:10:48 +0900

Not if the function is inlined.

– Fjölnir

On May 14, 2012, at 2:06 PM, Kaj Eijlers wrote:

> On Sun, May 13, 2012 at 9:59 PM, Fjölnir Ásgeirsson <fjolnir@xxxxxxxxxxxxx> 
> wrote:
> You'll have to create a library that defines a function pointer to them.
> So if your inlined function is: static __inline__ int foo(double bar);
> 
> 
> Hmmmmm, I was hoping to be able to define that function in lua and somehow 
> add it to a metatable that contains also the ffi functions. Not possible?
> 
> Kaj 

Other related posts: