mitchellh / go-mruby

Go (golang) bindings to mruby.
https://gist.github.com/mitchellh/90029601268e59a29e64e55bab1c5bdc
MIT License
471 stars 34 forks source link

Expose mrb_iv_get/set, mrb_gv_get/set to Go in a consistent fashion. #69

Closed fbnz156 closed 6 years ago

fbnz156 commented 6 years ago

Re-submission of #67 due to flawed pull request.

Added MrbValue.GetInstanceVariable, MrbValue.SetInstanceVariable, Mrb.GetGlobalVariable, Mrb.SetGlobalVariable and their underlying C methods to allow Go to pass variables to/from Ruby.

This is honestly a staple of ANY scripting implementation.

erikh commented 6 years ago

sorry I got back to this so late. great tests; thanks for your contribution!