lua-users home
lua-l archive

Re: C++ integration / DSEL alternative questions

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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

AltStyle によって変換されたページ (->オリジナル) /