aarzilli/golua — pull request #3 by losinggeneration (2012-12-11 18:50:34+00:00)
Title: clua_pushcallback has been added to allow definining metamethods with Go...

clua_pushcallback has been added to allow definining metamethods with Go functions.

This adds the ability to push Go functions as C closures. It's code hand patched from @stevedonovan's golua repo. Specifically: https://github.com/stevedonovan/golua/commit/3a27ba88ab6637e70ae243ab29aa768e1734f697 without the changes to GoInterface.

His [luar](https://github.com/stevedonovan/luar) project, which uses golua, then only needs small changes to become compatible with your golua fork.