rename ruby_protect_eval_string()
This commit is contained in:
parent
c84fbddaca
commit
f91f98aae4
@ -14,7 +14,7 @@ VALUE svi_ruby_protect_eval_string_rescue(VALUE exception, VALUE exception_objec
|
||||
return Qnil;
|
||||
}
|
||||
|
||||
VALUE ruby_protect_eval_string(const char * ruby_expression, bool * exception)
|
||||
VALUE svi_ruby_protect_eval_string(const char * ruby_expression, bool * exception)
|
||||
{
|
||||
*exception = false;
|
||||
return rb_rescue((VALUE(*)(...))rb_eval_string, (VALUE)ruby_expression,
|
||||
@ -107,7 +107,7 @@ int main(int argc, char * argv[])
|
||||
RUBY_INIT_STACK;
|
||||
ruby_init();
|
||||
rb_gv_set("$SHARE_DIR", rb_str_new(share_dir.c_str(), share_dir.size()));
|
||||
ruby_protect_eval_string(ruby_startup, &exception);
|
||||
svi_ruby_protect_eval_string(ruby_startup, &exception);
|
||||
}
|
||||
delete[] ruby_startup;
|
||||
return exception ? 1 : 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user