diff --git a/src/script_opt/CPP/DeclFunc.cc b/src/script_opt/CPP/DeclFunc.cc index 0d9566037b..9ff0eb4134 100644 --- a/src/script_opt/CPP/DeclFunc.cc +++ b/src/script_opt/CPP/DeclFunc.cc @@ -144,6 +144,7 @@ void CPPCompile::DeclareSubclass(const FuncTypePtr& ft, const ProfileFunc* pf, c StartBlock(); Emit("flow = FLOW_RETURN;"); + Emit("f->SetOnlyCall(ce.get());"); if ( in_hook ) { Emit("if ( ! %s(%s) )", fname, args);