MRI: don't set $0 (see #24)
This commit is contained in:
parent
4e0262d2a7
commit
06b877a78c
|
@ -279,8 +279,6 @@ static void runRMXPScripts()
|
||||||
decData.resize(hdSize + scriptDecLen);
|
decData.resize(hdSize + scriptDecLen);
|
||||||
memcpy(&decData[hdSize], scriptDecPtr, scriptDecLen);
|
memcpy(&decData[hdSize], scriptDecPtr, scriptDecLen);
|
||||||
|
|
||||||
ruby_script(RSTRING_PTR(rb_ary_entry(script, 1)));
|
|
||||||
|
|
||||||
/* Execute code */
|
/* Execute code */
|
||||||
rb_eval_string_protect(decData.c_str(), 0);
|
rb_eval_string_protect(decData.c_str(), 0);
|
||||||
|
|
||||||
|
@ -290,7 +288,6 @@ static void runRMXPScripts()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void mriBindingExecute()
|
static void mriBindingExecute()
|
||||||
{
|
{
|
||||||
ruby_setup();
|
ruby_setup();
|
||||||
|
|
Loading…
Reference in New Issue