[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: dynamically associating functions with lua
- From: "Martin Slater" <mslater@...>
- Date: Wed, 22 Oct 2003 13:36:33 +1000
Thanks for the heads up, I'll have a look at it.
> -----Original Message-----
> From: firstname.lastname@example.org [mailto:lua-
> email@example.com] On Behalf Of Asko Kauppi
> Sent: Wednesday, 22 October 2003 3:44 AM
> To: Lua list
> Subject: Re: dynamically associating functions with lua
> If you have problems doing the actual linkage to the dll, you might
> check the 'dynacall' module in recent gluax. It allows linking to any
> dlls/so's/dylibs on the run, without making C code.
> Martin Slater kirjoittaa tiistaina, 21. lokakuuta 2003, kello 13:26:
> > Hi there,
> > I'm looking at lua for driving a utility that loads it functions
> > dll's. The available functions are enumerated by the main app via an
> > interface into the dll, all functions have the same type and
> > their parameters off an internal stack. The problem i want to solve
> > exposing these functions to lua. Currently the parameter types are
> > encoded by the plugin developer so the main app can type check its
> > input and it would be nice to be able to make these available lua.
> > The only thought i have is to auto generate a lua script that
> > implements a function stub of the same name as the the dll function,
> > push the function name and all its parameters into a table and call
> > 'c' side do_function_call that pulls this info and makes the call.
> > Does anyone have any better ides for doing this?
> > Thanks
> > Martin