[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: C++ integration / DSEL alternative questions
- From: Kevin Martin <kev82@...>
- Date: Tue, 1 Apr 2014 09:53:35 +0100
On 1 Apr 2014, at 09:42, Moose <moose@posteo.de> wrote:
>> 1) Can Lua scripts call functions in the very same DLL that calls the
>> interpreter?
Is there a particular reason you are using the ffi? Can you not write your C function as a lua_CFunction, and then use lua_pushcfunction/lua_setglobal to make it accessible to the script?
Thanks,
Kev