From: Bill Kelly Date: 2004-06-10T12:57:43+09:00 Subject: Re: novice ruby embed question Hi Nobu, From: > > ruby_init(); > > ruby_script("embedded"); > > > rb_load_protect(rb_str_new2("test.rb"), 0, &status); > if (status == 0) { > ruby_run(); > } Thanks !!! I'd also like ruby not to call exit() as ruby_run() does, when it's finished. Is it safe for me to just call ruby_exec(), like: rb_load_protect(rb_str_new2("test.rb"), 0, &status); if (status == 0) { int state; state = ruby_exec(); } ...instead of ruby_run()? Is there a better way? Thanks! Regards, Bill