1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2024-11-10 00:45:36 +00:00

Math interpreter: added inf as a constant

This commit is contained in:
Antonin Portelli 2017-01-11 11:24:09 +00:00
parent 9e8021d7d7
commit 80b826040b

View File

@ -690,6 +690,7 @@ void MathInterpreter::compile(RunContext &context)
if (root_)
{
context.addVariable("pi", Math::pi);
context.addVariable("inf", HUGE_VAL);
ADD_STDMATH_FUNCS(context);
root_->compile(program_, context);
for (unsigned int i = 0; i < program_.size(); ++i)