|
|
@ -105,6 +105,7 @@ void RubyScript::compile()
|
|
|
|
#endif // HAVE_RUBY_1_9
|
|
|
|
#endif // HAVE_RUBY_1_9
|
|
|
|
VALUE src = RubyExtension::toVALUE( m_scriptcontainer->getCode() );
|
|
|
|
VALUE src = RubyExtension::toVALUE( m_scriptcontainer->getCode() );
|
|
|
|
StringValue(src);
|
|
|
|
StringValue(src);
|
|
|
|
|
|
|
|
VALUE name = RubyExtension::toVALUE( m_scriptcontainer->getName() );
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef HAVE_RUBY_1_9
|
|
|
|
#ifdef HAVE_RUBY_1_9
|
|
|
|
// FIXME
|
|
|
|
// FIXME
|
|
|
@ -113,7 +114,7 @@ void RubyScript::compile()
|
|
|
|
rb_thread_critical = Qtrue;
|
|
|
|
rb_thread_critical = Qtrue;
|
|
|
|
ruby_in_eval++;
|
|
|
|
ruby_in_eval++;
|
|
|
|
#endif // HAVE_RUBY_1_9
|
|
|
|
#endif // HAVE_RUBY_1_9
|
|
|
|
rb_funcall(d->m_script, rb_intern("module_eval"), 2, src, (char*) m_scriptcontainer->getName().latin1());
|
|
|
|
rb_funcall(d->m_script, rb_intern("module_eval"), 2, src, name);
|
|
|
|
#ifdef HAVE_RUBY_1_9
|
|
|
|
#ifdef HAVE_RUBY_1_9
|
|
|
|
// FIXME
|
|
|
|
// FIXME
|
|
|
|
#else // HAVE_RUBY_1_9
|
|
|
|
#else // HAVE_RUBY_1_9
|
|
|
|