forked from OctaForge/libcubescript
move the pcall func
parent
3d39cf73e0
commit
4f0d6eda87
|
@ -207,7 +207,7 @@ static bool do_call(CsState &cs, ostd::ConstCharRange line, bool file = false) {
|
||||||
cs.run(line, ret);
|
cs.run(line, ret);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if (!cs.pcall(tocall, &err, &st)) {
|
if (!cs.pcall(ostd::move(tocall), &err, &st)) {
|
||||||
signal(SIGINT, SIG_DFL);
|
signal(SIGINT, SIG_DFL);
|
||||||
ostd::ConstCharRange terr = err;
|
ostd::ConstCharRange terr = err;
|
||||||
auto col = ostd::find(terr, ':');
|
auto col = ostd::find(terr, ':');
|
||||||
|
|
Loading…
Reference in New Issue