LuaNativeObjects

A Lua bindings generator.

$ luarocks install luanativeobjects

This is a bindings generator for Lua & LuaJIT2. It can be used to generator both standard Lua C API & LuaJIT2 FFI based bindings for C libraries. Both standard & FFI based bindings are packaged in a single shared library (.so or .dll) file. When the module is loaded in LuaJIT2 (please use git HEAD version of LuaJIT2 for now) it will try to load the FFI-based bindings in-place of the standard Lua API bindings.

This bindings generator is design to create Object based bindings, instead of simple procedural bindings. So if you have a C structure (your object) and a set of C functions (your object's methods) that work on that structure, then you can turn them into a nice Lua object.

Versions

scm-0dev10 days ago1 download
0.5-110 days ago13 downloads
0.5-010 days ago2 downloads

Dependencies

lua >= 5.1, < 5.5

Dependency for

LuaNativeObjects-luadoc

Labels

Manifests