|
|
|
@ -105,6 +105,7 @@ void RubyScript::compile()
|
|
|
|
|
#endif // HAVE_RUBY_1_9
|
|
|
|
|
VALUE src = RubyExtension::toVALUE( m_scriptcontainer->getCode() );
|
|
|
|
|
StringValue(src);
|
|
|
|
|
VALUE name = RubyExtension::toVALUE( m_scriptcontainer->getName() );
|
|
|
|
|
|
|
|
|
|
#ifdef HAVE_RUBY_1_9
|
|
|
|
|
// FIXME
|
|
|
|
@ -113,7 +114,7 @@ void RubyScript::compile()
|
|
|
|
|
rb_thread_critical = Qtrue;
|
|
|
|
|
ruby_in_eval++;
|
|
|
|
|
#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
|
|
|
|
|
// FIXME
|
|
|
|
|
#else // HAVE_RUBY_1_9
|
|
|
|
|