diff options
Diffstat (limited to 'lib/kross/ruby/rubyinterpreter.cpp')
| -rw-r--r-- | lib/kross/ruby/rubyinterpreter.cpp | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/lib/kross/ruby/rubyinterpreter.cpp b/lib/kross/ruby/rubyinterpreter.cpp index 18ae65955..3504ca7c4 100644 --- a/lib/kross/ruby/rubyinterpreter.cpp +++ b/lib/kross/ruby/rubyinterpreter.cpp @@ -16,6 +16,8 @@   * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,   * Boston, MA 02110-1301, USA.   ***************************************************************************/ + +#include "config.h"  #include "rubyinterpreter.h"  #include <map> @@ -83,12 +85,14 @@ RubyInterpreter::RubyInterpreter(Kross::Api::InterpreterInfo* info): Kross::Api:      {          initRuby();      } +#ifndef HAVE_RUBY_3      if(info->hasOption("safelevel") )      {          kross_rb_set_safe_level( info->getOption("safelevel")->value.toInt() );      } else {          kross_rb_set_safe_level(3); // if the safelevel option is undefined, set it to maximum level      } +#endif  } | 
