ShadowApex / godot-go

Go language bindings for the Godot Engine's GDNative API.
MIT License
363 stars 31 forks source link

Fixed issue with multiple arguments #50

Open kohlten opened 4 years ago

kohlten commented 4 years ago

Fixes #48

The issue with the multiple arguments was related to the pointer arithmetic that was being used to go through the C arguments in go_method_func. I was able to fix that by using reflect to create a Go slice from that C array and then just go through that array to create the go variants.