use Bytecode object
parent
1812c06bf6
commit
6c40623371
6
main.cc
6
main.cc
|
@ -331,12 +331,12 @@ struct ObState: CsState {
|
||||||
int ret = wait_result([&rlist, &subdeps, &tname, this]() {
|
int ret = wait_result([&rlist, &subdeps, &tname, this]() {
|
||||||
return exec_list(rlist, subdeps, tname);
|
return exec_list(rlist, subdeps, tname);
|
||||||
});
|
});
|
||||||
Uint32 *func = nullptr;
|
cscript::Bytecode *func = nullptr;
|
||||||
bool act = false;
|
bool act = false;
|
||||||
for (auto &sr: rlist.iter()) {
|
for (auto &sr: rlist.iter()) {
|
||||||
Rule &r = *sr.rule;
|
Rule &r = *sr.rule;
|
||||||
if (r.func) {
|
if (r.func) {
|
||||||
func = r.func;
|
func = &r.func;
|
||||||
act = r.action;
|
act = r.action;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -364,7 +364,7 @@ struct ObState: CsState {
|
||||||
sourcesv.push();
|
sourcesv.push();
|
||||||
}
|
}
|
||||||
|
|
||||||
return run_int(func);
|
return run_int(*func);
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue