mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
binpac: Add scoping to usages of binpac::Exception classes in generated code.
This allows analyzers to define their own types of the same name without mistakingly overshadowing the usages of binpac::Exception and its derived types in the generated parser code.
This commit is contained in:
parent
6c70f7851b
commit
14e3d5a1a3
6 changed files with 13 additions and 11 deletions
|
@ -295,7 +295,7 @@ void Expr::GenCaseEval(Output *out_cc, Env *env)
|
|||
}
|
||||
else
|
||||
{
|
||||
out_cc->println("throw ExceptionInvalidCaseIndex(\"%s\", %s);",
|
||||
out_cc->println("throw binpac::ExceptionInvalidCaseIndex(\"%s\", %s);",
|
||||
Location(), operand_[0]->EvalExpr(out_cc, env));
|
||||
}
|
||||
out_cc->println("break;");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue