mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 02:28:21 +00:00
switched CPPCompile::Canonicalize() to take std::string instead of const char*
This commit is contained in:
parent
84d8e74884
commit
519fec2592
6 changed files with 11 additions and 13 deletions
|
@ -646,7 +646,7 @@ string CPPCompile::GenLambdaExpr(const Expr* e) {
|
|||
|
||||
string CPPCompile::GenLambdaExpr(const Expr* e, string capture_args) {
|
||||
auto l = static_cast<const LambdaExpr*>(e);
|
||||
auto name = Canonicalize(l->Name().c_str()) + "_lb_cl";
|
||||
auto name = Canonicalize(l->Name()) + "_lb_cl";
|
||||
auto cl_args = string("\"") + name + "\"" + std::move(capture_args);
|
||||
auto body = string("make_intrusive<") + name + ">(" + cl_args + ")";
|
||||
auto func = string("make_intrusive<CPPLambdaFunc>(\"") + l->Name() + "\", cast_intrusive<FuncType>(" +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue