Reputation: 535
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?
Upvotes: 2
Views: 190
Reputation: 26204
Instead of writing the ffi specifications by hand you could use Swig to automate the task: http://www.swig.org/Doc1.3/Lua.html
Upvotes: 3