Suraj N. Kurapati wrote:
> Is there a way to "return" from inside a ruby_exec() call so that a
> subsequent call to ruby_exec() will resume execution from the first
> instruction after the "return" ?

See [ruby-core:16066] for the solution.

http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/16066