PUC Lua is supposedly a bit of a pain for ffi, but I havent tried it myself. Luajit is some kind of crazy magic. You can (almost) just copy and paste the c header file into the ffi.cdef function and then start using c functions as if they were lua functions.
gucci-on-fleek|5 months ago
[0]: https://github.com/dibyendumajumdar/ravi-ffi