tomaka / hlua

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

Fix Functions not properly accepting User Data #76

Closed CryZe closed 7 years ago

CryZe commented 8 years ago

This fixes a bug where functions could never be used with both User Data and standard types. The previous implementation was only able to handle User Data being the first parameter and even asserted that only 1 parameter was being used. The new implementation is dynamic over the index and works with any combination of User Data and standard types.

Fixes #75

CryZe commented 8 years ago

Looks like you can't return User Data from LUA. Welp, time to fix that too :disappointed: