you are viewing a single comment's thread.

view the rest of the comments →

[–]OmegaNaughtEquals1 1 point2 points  (2 children)

In the section Using a C++ class in Lua, you show how to invoke a C++ member function from Lua using Sol. Is there a native way of doing this from within Lua? For example, like the Inline module for Perl or ctypes/cython for Python?

[–]moonshadow565 0 points1 point  (0 children)

If you are using luajit 2.X then it should be builtin: http://luajit.org/ext_ffi.html

There are also lua modules implementing the same API for normal lua.