Jump to content
  • Advertisement
Sign in to follow this  
King_DuckZ

Calling Ruby script from code

This topic is 3692 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello everyone! As you probably guessed from the title, what I'm trying to do is calling an external script from my c++ application. I know Lua or other scripts are more suited for this, but I'm just experimenting, so bear with me :) I've been searching the net for two days now, and all I found are functions like ruby_init(), ruby_options() and so on, but not a decent description of how they should be used. Moreover, I'd like to get some value back (the result of a sum, as an example), but ruby_script() has no return value. Do you know of any site or doc with some decent specs? Do I have to use an intermidiate library like SWIG?

Share this post


Link to post
Share on other sites
Advertisement
I already ran into one of those, but I'll give a look at the others. The one referring to rubycentral seems promising :)
Thanks a lot!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!