Description
Connects Lua code to C libraries through a portable foreign-function interface based on libffi. It is useful for developers who need Lua scripts or applications to call native APIs without writing a full binding by hand.
FFI code can crash processes or bypass normal language safety when signatures or memory handling are wrong. Validate library calls carefully before using it with untrusted input.