diff options
author | Slávek Banko <[email protected]> | 2016-01-01 20:07:12 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2016-01-01 20:07:12 +0100 |
commit | 0c09c41f99f50da12e6a13357683679f1d0bc9c1 (patch) | |
tree | 5eb9efe8a71722c555a3e6280e32b93be215384b /lib/kross/ruby/rubyinterpreter.cpp | |
parent | 4eabb309b98fd80e91542d3149375e374412b623 (diff) | |
download | koffice-0c09c41f99f50da12e6a13357683679f1d0bc9c1.tar.gz koffice-0c09c41f99f50da12e6a13357683679f1d0bc9c1.zip |
Add wrapper for rb_set_safe_level
This resolves FTBFS with Ruby 2.2
This resolves Bug 2467
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'lib/kross/ruby/rubyinterpreter.cpp')
-rw-r--r-- | lib/kross/ruby/rubyinterpreter.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/kross/ruby/rubyinterpreter.cpp b/lib/kross/ruby/rubyinterpreter.cpp index 7e09106a..18ae6595 100644 --- a/lib/kross/ruby/rubyinterpreter.cpp +++ b/lib/kross/ruby/rubyinterpreter.cpp @@ -31,6 +31,7 @@ #include "rubyextension.h" #include "rubymodule.h" #include "rubyscript.h" +#include "rubywrapper.h" extern "C" { @@ -72,7 +73,7 @@ class RubyInterpreterPrivate { VALUE RubyInterpreterPrivate::s_krossModule = 0; RubyInterpreterPrivate* RubyInterpreter::d = 0; - + RubyInterpreter::RubyInterpreter(Kross::Api::InterpreterInfo* info): Kross::Api::Interpreter(info) { #ifdef KROSS_RUBY_INTERPRETER_DEBUG @@ -84,9 +85,9 @@ RubyInterpreter::RubyInterpreter(Kross::Api::InterpreterInfo* info): Kross::Api: } if(info->hasOption("safelevel") ) { - rb_set_safe_level( info->getOption("safelevel")->value.toInt() ); + kross_rb_set_safe_level( info->getOption("safelevel")->value.toInt() ); } else { - rb_set_safe_level(3); // if the safelevel option is undefined, set it to maximum level + kross_rb_set_safe_level(3); // if the safelevel option is undefined, set it to maximum level } } |