tomaka / hlua

Rust library to interface with Lua
MIT License
510 stars 48 forks source link

Fix individual library open functions #147

Open giodamelio opened 7 years ago

giodamelio commented 7 years ago

See #146.

I think I got this mostly working, but since I have never programmed in C or used the Rust FFI before things could be totally broken.

The Lua 5.2 Docs say that you should use requiref to require individual libraries. So I basically implement this. My understanding of Lua internals is practically non-existent, so I hope this is right.

Just one part I'm not sure how to do cleanly. See the line comment below.