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:
Jon Siwek 2012-11-12 11:44:14 -06:00 committed by Tim Wojtulewicz
parent 6c70f7851b
commit 14e3d5a1a3
6 changed files with 13 additions and 11 deletions

View file

@ -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;");