ekd123
ekd123

Reputation: 535

Let Lua call the host program?

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

Answers (1)

piokuc
piokuc

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

Related Questions