Re: FFI newby question: importing C functions

  • From: Patrick Masotta <masottaus@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Tue, 26 Jun 2012 02:56:35 -0700 (PDT)

Not trying to hijack the post but it's very related:
Is there any way to add a function from my own executable to 
the ffi.C namespace without exporting it by __declspec(dllexport)?

The idea is making the method available to LUA but not by linking against the 
exe





--- On Tue, 6/26/12, Mike Pall <mike-1206@xxxxxxxxxx> wrote:

> From: Mike Pall <mike-1206@xxxxxxxxxx>

> > myexe = ffi.load( "myexe.exe" )
> 
> You never need to do this. The symbols from your own
> executable
> are already part of the ffi.C namespace.
> 
> --Mike
> 
> 

Other related posts: