I’m really tired of making so many wrappers for every function which needs to be used in the scripts. I noticed this Lua FFI tutorial. I hope that I could use FFI to call the host program directly. Is this possible? If possible, how to do it?
Share
Instead of writing the ffi specifications by hand you could use Swig to automate the task: http://www.swig.org/Doc1.3/Lua.html