fixes for compiling lambdas to C++

This commit is contained in:
Vern Paxson 2023-08-16 17:03:37 -07:00
parent 4991693a9c
commit 6af0014a7b
3 changed files with 9 additions and 2 deletions

View file

@ -174,7 +174,8 @@ extern void analyze_lambda(LambdaExpr* f);
// has already been called.
extern void analyze_when_lambda(LambdaExpr* f);
// Whether a given script function is a "when" lambda.
// Whether a given script function is a lambda or (separately) a "when" lambda.
extern bool is_lambda(const ScriptFunc* f);
extern bool is_when_lambda(const ScriptFunc* f);
// Analyze the given top-level statement(s) for optimization. Returns