mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
simpler workflow for -O gen-C++ ; also some hooks for -O gen-standalone-C++
This commit is contained in:
parent
98f549d65d
commit
e1dc3e7b08
4 changed files with 57 additions and 16 deletions
|
@ -24,6 +24,9 @@ void CPPCompile::DeclareFunc(const FuncInfo& func)
|
|||
|
||||
DeclareSubclass(f->GetType(), pf, fname, body, priority, nullptr,
|
||||
f->Flavor());
|
||||
|
||||
if ( f->GetBodies().size() == 1 )
|
||||
compiled_simple_funcs[f->Name()] = fname;
|
||||
}
|
||||
|
||||
void CPPCompile::DeclareLambda(const LambdaExpr* l, const ProfileFunc* pf)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue